Skip to main content

118 posts tagged with "Frontend"

Template, dataLayer and storefront JavaScript announcements.

View All Tags

3rd party marketing and analytics cookies in add-ons

· 2 min read
Pavel Husa

From 1. 1. 2022 all marketing and analytics cookies must be approved by the user. A new cookie toolbar will be implemented according to the new legislation by that date. We are aware of a short time to implement all necessary functionality, but all addons must reflect users’ settings and collect data only if it’s granted.

More stable assets url without a hash

· One min read
Pavel Husa

You may need to use our JS and CSS assets. These files are available on e. g. for a domain classic.shoptet.cz https://cdn.myshoptet.com/usr/classic.shoptet.cz/user/temp/frontend_master_main_cs_4505943f2a89163a3590d37682e91bd2.css unique hash just before file extension changes quite often (no less than a few times a week depends on a release frequency).
Now we provide stable url in a form of https://cdn.myshoptet.com/usr/YOUR_DOMAIN/user/temp/frontend_master_main_LANGUAGE_CODE.css. Replace LANGUAGE_CODE with the country code of your project e. g. cs, sk, hu.

Store Rating in JSON format

· One min read
Pavel Husa

We are now providing Store Rating info in JSON format. It can be used to get that data and instead of scraping them from DOM, you can access them directly.
We kept the same URL, but from now you can request JSON format when you send header content-type: application/json which make it pretty easy if you are using this URL now.

Minor accessibility improvements

· One min read
Martin Stehlík

In the coming days, there will be release aiming at increasing accessibility of our templates. It will consist of several minor changes that should not have any negative impact on template modifications or blank templates in most cases. However, just to be sure, below are listed some of the more sensitive changes for reference.

How to properly remove a product from the cart with JavaScript

· One min read
Pavel Husa

In the past, we introduced the JS function addToCart that can be used to add various items to the cart see a post here.
As a complementary function we added function to remove an item from the cart available in Shoptet structure: shoptet.cartShared.removeFromCart. This function accepts one parameter itemId formed as an object. This ID can be found in a cart form as hidden input element.

New tooltip element in forms

· One min read
Martin Stehlík

In the forthcoming days, a tooltip element (or, more accurately, a span with question mark that displays tooltip content on hover) will be introduced in the VAT number form field. If you are blank template author or use heavy style modifications in forms, you will be on the safe side by hiding these tooltips in advance and by doing necessary changes after release. Tooltip elements will have class form-group-tooltip in 3rd gen templates, in older templates show-tooltip-input.

Zásilkovna Widget v6

· One min read
Pavel Husa

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.

Fonts info in shoptet.config

· One min read
Pavel Husa

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: