Version 1.1.8
This update was released on the 25th of October.
Changelog
- Fixed an issue with "natural" product images and the latest version of Safari
- Fixed an issue with images in IE11
- Added logo image to the password page
- Added support for more product badges.
How manually update
Here's a guide on how to fix the bugs and add tags support for "preorder" & "new" product badges.
Safari images issues
- Go to the theme editor (read this article for more info)
-
Choose /sections/product.liquid and right at the end of the file, paste the following snippet:
{% if section.settings.gallery_resize == 'fit' %} <script type="text/javascript"> window.CuberFixGalleryItem = true; </script> {% endif %}
- Choose /sections/product_pre-order.liquid and do the same as above.
-
Choose /assets/js_main.js and search for this line:
if ( $('#fix-me-header').css('content') == '"fix-gallery-item"' ) {
Replace it with the following:
if ( window.CuberFixGalleryItem ) {
- Save all files!
IE11 images issues
- Go to the theme editor (read this article for more info)
- Choose /assets/js_product.liquid and just at the beginning of the file, paste the contents from this file: https://pastebin.com/raw/9yHmtkPk
- Save!
Add more product badges
- Go to the theme editor (read this article for more info)
-
Choose /snippets/product_badges.liquid and replace the contents of the file with the following:
{% unless product.available %} <div class="product-badge sold"><span>{{ 'product.sold_out' | t }}</span></div> {% else %} {% if product.compare_at_price > product.price %} <div class="product-badge sale"><span>{{ 'product.on_sale' | t }}</span></div> {% elsif product.tags contains 'preorder' %} <div class="product-badge preorder"><span>Pre Order</span></div> {% elsif product.tags contains 'new' %} <div class="product-badge new"><span>New</span></div> {% endif %} {% endunless %}
- Change the new words after your own desire and then save the file.
- From this point, if you tag a product "new" or "preorder", you will see this badge in the grid.