This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Preload images */ | |
body:after { | |
content: url(close.png) url(loading.gif) url(prev.png) url(next.png); | |
display: none; | |
} | |
body.lb-disable-scrolling { | |
overflow: hidden; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function () { | |
var galleryCheck = $("div.gallery_sef").length; | |
extensions = ["_pico.", "_icon.", "_thumb.", "_small.", "_compact.", "_medium.", "_large.", "_grande.", "_1024x1024.", "_2048x2048." ]; | |
if (galleryCheck > 0) { | |
gallery = $("div.gallery_sef"); | |
var images = gallery.find('img'); | |
images.each(function () { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="ProductSection" data-section-id="{{ section.id }}" data-section-type="product-template" data-zoom-toggle="zoom-in" data-zoom-enabled="{{ section.settings.product_image_zoom_enable }}" data-related-enabled="{{ section.settings.product_related_enable }}" data-social-sharing="{{ section.settings.social_sharing }}" data-show-compare-at-price="{{ section.settings.product_show_compare_at_price }}" data-stock="{{ section.settings.product_quantity_message }}" data-incoming-transfer="{{ section.settings.product_incoming_message }}"> | |
{% include 'breadcrumb' %} | |
<div class="grid" itemscope itemtype="http://schema.org/Product"> | |
<meta itemprop="url" content="{{ shop.url }}{{ product.url }}"> | |
<meta itemprop="image" content="{{ product.featured_image.src | img_url: 'grande' }}"> | |
<div class="grid-item large--two-fifths"> | |
<div class="grid"> | |
<div class="grid-item large--eleven-twelfths text-center"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% assign saved_amount = compare_price | minus: product_price %} | |
{% comment %} | |
Unless this store uses multiple currencies, | |
we will remove the decimals when they are equal to 00, | |
or when the amount is > 10 (dollars, pounds, etc.). | |
{% endcomment %} | |
{% if shop.money_format contains 'money' %} | |
{% assign saved_amount = saved_amount | money %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% unless grid_item_width %} | |
{% assign grid_item_width = 'large--one-quarter medium-down--one-half' %} | |
{% endunless %} | |
{% unless image_size %} | |
{%- assign image_size = '600x600' -%} | |
{% endunless %} | |
{% unless current_collection %} | |
{% assign current_collection = collection %} |