Skip to main content

News

API and frontend release news for developers building on Shoptet.

Categories: API news · Frontend news

Subscribe: RSS · Atom · JSON

Suppress mandatory fields check for historical orders

· One min read
Pavel Husa

Endpoint Insert Order requires billing information and eventually delivery address to be provided according to mandatory fields settings for each eshop (see in administration, under „Settings > Customers > Mandatory fields“ or using endpoint Required fields).
This is intended for new orders, however we have decided to allow relaxing these checks for historical orders (e. g. import from another system, which might be lacking some fields). To skip the check, use parameter ?suppressHistoricalMandatoryFields=true. This can be used only for historical orders (older than 1 day) and should be used carefully – other addons and functionality can be confused by inconsistent data and provide unreliable results.

Transition to flexbox in product listing grids

· One min read
Martin Stehlík

In the coming days, a CSS change in templates Tango, Waltz, Classic and Step concerning the .products-block grid component will be released. Flexbox will be used to a greater extend instead of JavaScript for calculating height of product cards. Until now, templates Techno, Classic and Step used JavaScript to set height of product cards (.products-block .p elements) according to the highest card in the grid. After the change, this will apply only for the Techno template.

Stock changes do not imply product change

· One min read
Pavel Husa

When a product is changed (any of its data gets modified), we update the modification timestamp (changeTime) in the List of Products endpoint, Product Detail endpoint and the change is tracked via the Last Product Changes endpoint. Recently we have changed the logic in case of stock amount update – formerly stock amount did change the modification timestamp, from now on it does not change it and the update is not visible in the Last Product Changes. Stock movements can be tracked by Stock Movement endpoint.

Measure unit and price support in API

· One min read
Pavel Husa

Measure units and prices are used to compare similar goods with variable package sizes. For example you might sell a chocolate of 50 g weight, as well as 100 g or 200 g. To make the price comparison easier, the measure price expresses price value converted to a predefined weigth, for example 100 g. See more at Support Pages.

Support for CSS variables

· One min read
Martin Stehlík

We have added support for CSS variables holding custom values inserted by user in e-shop administration (theme colors, fonts, images). You can now refer to them in your stylesheets. Please note that Shoptet stylesheets do not use CSS variables internally, so default styles will be not modified by changing values of these variables.

Changes to price lists

· One min read
Pavel Husa

We have just introduced a new endpoint, which can be used to modify prices (price, common price, purchase price, action price), discount flags and min/max orderable amounts: Update Price List PATCH /api/pricelists/{pricelistId}.