This file contains 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
{% comment %} | |
Do we have a Color option? | |
If so, is it the first, second or third option of that product? | |
We will need to access values so we need that color index. | |
{% endcomment %} | |
{% assign has_color = false %} | |
{% assign color_option_index = 0 %} | |
{% for option in product.options %} | |
{% assign downcased_option = option | downcase %} |
This file contains 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
{ | |
"name": "Youtube", | |
"settings":[ | |
{ | |
"type": "header", | |
"content": "Youtube Section" | |
}, | |
{ | |
"type": "text", | |
"id": "youtube_video_link", |
This file contains 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 total_saving = 0 %} | |
{% for item in cart.items %} | |
{% if item.variant.compare_at_price > item.variant.price %} | |
{% capture saving %}{{ item.variant.compare_at_price | minus: item.variant.price }}{% endcapture %} | |
{% assign total_saving = saving | plus: total_saving %} | |
{% endif %} | |
...rest of cart code within for loop | |
{% endfor %} | |
Display saving: |
This file contains 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
/* | |
* Project: Shopify AJAX Cart Plugin | |
* Description: Provides AJAX cart functionality for interacting with the Shopify AJAX API so you don't need an "Update Cart" button | |
* Dependency: jQuery 1.6+ | |
* Author: Ryan Marshall ([email protected]) | |
* License: Free | |
* Usage: | |
* | |
* $('#cart-form').shopifyAJAXCart({ | |
* item: '.line-item-container', |