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
| {% if product.variants.size > 1 %} | |
| {% for option in product.options %} | |
| {% if option == 'Color' %} | |
| {% assign index = forloop.index0 %} | |
| {% assign colorlist = '' %} | |
| {% assign color = '' %} | |
| {% for variant in product.variants %} | |
| {% capture color %} | |
| {{ variant.options[index] }} | |
| {% endcapture %} |
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
| min_discount_order_amount = Money.new(cents:100) * 50 | |
| min_discount_order_amount_2 = Money.new(cents:100) * 100 | |
| total = Input.cart.subtotal_price_was | |
| discount = if total > min_discount_order_amount_2 | |
| 1000 | |
| elsif total > min_discount_order_amount | |
| 500 | |
| else | |
| 0 | |
| end |
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
| min_discount_order_amount = Money.new(cents:100) * 30 | |
| total = Input.cart.subtotal_price_was | |
| discount = if total > min_discount_order_amount | |
| 500 | |
| else | |
| 0 | |
| end | |
| message = "My message" | |
| Input.cart.line_items.each do |line_item| |
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
| {% for product in collection.products %} | |
| {% assign color_active = false %} | |
| {% for option in product.options %} | |
| {% if option == 'Color' %} | |
| {% assign color_active = true %} | |
| {% endif %} | |
| {% endfor %} | |
| {% if product.variants.size > 1 and color_active == true %} | |
| {% for option in product.options %} | |
| {% if option == 'Color' %} |
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 sizes = '' %} | |
| {% assign outofstock = false %} | |
| {% for tag in current_tags %} | |
| {% if tag == 'XS' or tag == 'S' or tag == 'M' or tag == 'L' or tag == 'XL' %} | |
| {% assign outofstock = true %} | |
| {% endif %} | |
| {% endfor %} | |
| {% for variant in product.variants %} | |
| {% if variant.available %} |
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 sizes = '' %} | |
| {% for product in products limit: limit %} | |
| {% for variant in product.variants %} | |
| {% if variant.available %} | |
| {% assign sizes = sizes | append: variant.options[1] | append: '_' %} | |
| {% endif %} | |
| {% endfor %} | |
| {% endfor %} | |
| {% assign sizesArr = sizes | split: '_' | uniq %} |
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
| <iframe id="vimeo_player" src="https://player.vimeo.com/video/257992348?autoplay=1&loop=1&autopause=0&muted=1" width="500" height="281" frameborder="0" muted webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe> |
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
| $('a[href*="#"]') | |
| .not('[href="#"]') | |
| .not('[href="#0"]') | |
| .click(function(event) { | |
| if ( | |
| location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') | |
| && | |
| location.hostname == this.hostname | |
| ) { | |
| var target = $(this.hash); |
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
| min_discount_order_amount = Money.new(cents:100) * 75 | |
| discount_products = [xxxxxxxxxx, xxxxxxxxxx, xxxxxxxxxx, xxxxxxxxxx] | |
| total = Input.cart.subtotal_price_was | |
| discount = if total > min_discount_order_amount | |
| 1 | |
| else | |
| 0 | |
| end | |
| message = "You've earned a free gift" | |
| did_discount = false |
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="variant-inventory"> | |
| {% assign total = 0 %} | |
| {%for variant in product.variants %} | |
| {% capture i %}{{ total | plus:variant.inventory_quantity }}{%endcapture%} | |
| {% assign total = i %} | |
| {%endfor%} | |
| {% unless total == '0' %} | |
| Only {{ total }} left | |
| {% endunless %} | |
| </div> |