Skip to main content

News

API and frontend release news for developers building on Shoptet.

Categories: API news · Frontend news

Subscribe: RSS · Atom · JSON

Unification of validator message on the 3G – class removal alert

· One min read
Pavel Husa

To provide more consistent visual feedback when a validation error occurs, we unified the validation error display in all 3G templates.
New class js-validated-element-wrapper was added to the input wrapping element already containing form-group class. Validation error is now bellow validated input field.
A new included error message will contain both the former validator-msg class and the new js-validator-msg for a limited amount of time.

Product detail contains filtering parameters

· One min read
Pavel Husa

We have extended Product detail endpoint to return also filtering parameters and values. They are returned in object filteringParameters if the endpoint is called with ?include=filteringParameters. The structure contains list of parameters assigned to the product including all attributes and Google mapping. Each parameter has one or more values assigned and each of the values contains additional attributes, such as color or sorting priority.

Set items of a product set available

· One min read
Pavel Husa

Endpoint Product detail was extended to return a list of set items for products of type product-set. The endpoint has to be called with ?include=setItems, items are listed in the setItems array. Each set item is identified by both guid and code. Also amount of items within the set is available – such as a set consisting of a Snow White (1 piece) + Dwarf (7 pieces). For products which are not a set, setItems is set to null.