Modification of product variant parameters
We have released the last two endpoints to the product variant parameters maintenance family:
API and frontend release news for developers building on Shoptet.
We have released the last two endpoints to the product variant parameters maintenance family:
Today we have released a new endpoint to list all Warranties defined in the eshop, both system and user defined ones.
We have just introduced a new endpoint to retrieve Product category detail – one single category identified by a guid. The message format is equivalent to the categories in the List of product categories.
We have added a new webhook event eshop:mandatoryFields, which is emitted when “Required fields” on admin screen /admin/required-fields/ (Admin » Settings » Customers » Required Fields) get changed. Settings on this page affect fields, which are hidden or shown, optional or mandatory, on the customer registration and order billing & delivery information screens.
At the end of June, Zásilkovna is upgrading the widget for selecting pickup point, the new version 6 will replace v5 of the widget. See the blog post to read more.
Along with the new widget, we will change the implementation from packetaWidget.js to library.js to bring customers external pickup points and all features provided with v6. The new implementation is not backwards compatible with the previous one.
We have introduced a new endpoint Add variant parameter, so it is now possible to add new variant parameters and their possible values.
Endpoint List of shipping methods did not list all methods defined in the eshop – these with no shippingCompany were ommitted. Now these are included. Alternative list of shipping methods provided by Eshop info (using ?include=shippingMethods) did contain all methods and remains unchanged.
We now provide info about fonts set in admin in our shoptet.config object. This information should be used to load only those font, that is enabled in admin.
Example of structure:
We have just delivered the first part of recycling fees (contributions) support in API. There is a new endpoint List of recycling fee categories, which provides a complete list of all recycling fees defined in the eshop.
The best way to provide addons settings to the eshop admins is to integrate them into Shoptet administration. The settings page is integrated as an iframe. To avoid unathorized access to the settings page, an OAuth authentication is necessary. Formerly it was necessary to redirect to Shoptet OAuth server and perform challenge code verification. Now we provide the challenge code directly within iframe source url, which is faster and avoids using cookies, which are dropped by some more restrictive browsers for cross-site requests, such as Safari.