Skip to content

Instantly share code, notes, and snippets.

View holdinghandsfeedingducks's full-sized avatar

holdinghandsfeedingducks

View GitHub Profile
/* 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;
}
<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">
{% 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 %}
@holdinghandsfeedingducks
holdinghandsfeedingducks / gist:2717051cace22173993ee48579a03338
Last active June 13, 2017 03:26 — forked from nrkn/gist:4d698ca22ddec67a288d7ab32dc4f55e
Supply theme shopify product-grid-item.liquid - for showing product ranges on variants
{% 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 %}