Skip to main content

118 posts tagged with "Frontend"

Template, dataLayer and storefront JavaScript announcements.

View All Tags

Better styling options for texts in banners

· One min read
Martin Stehlík

You probably want to use additional texts in your banners (Banner title, Banner text and Link text). These texts are easily editable by any Shoptet administrator without technical knowledge or special software. At last but not least, actual text also looks sharp all the time.

Results for whisperer in JSON format

· One min read
Pavel Husa

From now on you can get search results for whisperer in JSON format. All you have to do is add the format parameter with json value. For example https://classic.shoptet.cz/action/ProductSearch/ajaxSearch/?language=cs&string=bosch&format=json.

Advantages of using Shoptet CDN

· 2 min read
Pavel Husa

If you need to include own script or stylesheet, we strongly recommend using Shoptet CDN (cdn.myshoptet.com). There are several advantages when using Shoptet CDN:

Note about XHR requests

· 2 min read
Pavel Husa

We do not like unnecessary XHR requests due to amplification of requests. Please consider carefully, if it’s really necessary to create new XHR request. If so, try to cache the results and not to make these requests with every page load.

Information about products in JavaScript

· 2 min read
Pavel Husa

Did you know that in JavaScript you can find information about all products that page contains? Try to type getShoptetProductsList() to browser’s console. Key of object is priceId of product, you can find it within each product as hidden input.

IDs for filter inputs

· One min read
Pavel Husa

We have added id attributes for inputs in filter also for older templates of 1st and 2nd generation. These IDs holds unique identificator of filtering parameter.

jQuery versions unified

· One min read
Martin Stehlík

We have upgraded jQuery version on older templates – Swing, Jazz, Funk, Pop, Rock, Soul and Echo – from 1.5.1 to 1.11.3. This means that all templates now use the same version, 1.11.3. For backwards compatibility, we do still support (and plan to support in the future) scripts written for 1.5.1, so no changes in custom codes or addons are neccessary.

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.

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.