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 class="framing" id="framing"> | |
| <div> | |
| <a href="#frame-gallery-gold" onclick="canvasFraming('gallery-gold','Gallery Gold')"></a> | |
| <p id="gallery-gold" onclick="canvasFraming('gallery-gold','Gallery Gold')">Gallery Gold</p> | |
| </div> | |
| <div> | |
| <a href="#frame-gallery-walnut" onclick="canvasFraming('gallery-walnut','Gallery Walnut')"></a> | |
| <p id="gallery-walnut" onclick="canvasFraming('gallery-walnut','Gallery Walnut')">Gallery Walnut</p> | |
| </div> | |
| <div> |
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
| {% comment %} | |
| Create product for engraving and add to collection with handle "utility" | |
| Add "add-to-cart" class to product form | |
| Add "quantity" class to quantity field | |
| Create a test for engraving product -- I like adding a product tag | |
| {% for tag in product.tags %} | |
| {% assign t = tag | downcase %} | |
| {% if t contains 'engrave' %}{% assign engrave = true %}{% endif %} | |
| {% endfor %} |
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 cart.total_price > settings.cart-discount-threshold %}{% assign threshold = true %}{% endif %} | |
| <form action="/cart{% if threshold %}/?discount=[discountcode]{% endif %}" method="post"> |
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 customer %}{% assign tags = customer.tags | join:' ' | downcase %}{% if tags contains 'wholesale' %}{% assign wholesale = true %}{% endif %}{% endif %} | |
| {% if wholesale %} | |
| {% if tags contains 'reorder' or customer.orders_count > 0 %}{% assign reorder = true %}{% endif %} | |
| {% assign min = settings.cart-min | times:100 | minus:1 %} | |
| {% if reorder %}{% assign min = setting.cart-min-reorder | times:100 | minus:1 %}{% endif %} | |
| {% endif %} | |
| <div class="meta grid"> | |
| {% if wholesale %}{% assign total = cart.total_price | divided_by:2 %}{% else %}{% assign total = cart.total_price %}{% endif %} | |
| <p>{{ total | money | remove:' ' }}</p> |
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 customer %}{% assign tags = customer.tags | join:' ' | downcase %}{% if tags contains 'wholesale' %}{% assign wholesale = true %}{% endif %}{% endif %} | |
| {% if wholesale %} | |
| {% if tags contains 'reorder' or customer.orders_count > 0 %}{% assign reorder = true %}{% endif %} | |
| {% assign min = settings.cart-min | times:100 | minus:1 %} | |
| {% if reorder %}{% assign min = setting.cart-min-reorder | times:100 | minus:1 %}{% endif %} | |
| {% endif %} | |
| <div class="meta grid"> | |
| {% if wholesale %}{% assign total = cart.total_price | divided_by:2 %}{% else %}{% assign total = cart.total_price %}{% endif %} | |
| <p>{{ total | money | remove:' ' }}</p> |
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 variant in product.variants %} | |
| {% assign option = variant.option1 | downcase %} | |
| {% assign p = variant.price | money %} | |
| {% unless option contains '+' or option contains 'swatch' %} | |
| {% if option contains '1-4' %} | |
| {% assign one = p %} | |
| {% else %} | |
| {% unless option contains '-' %}{% assign one = p %}{% endunless %} | |
| {% endif %} | |
| {% endunless %} |
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
| // config -> settings.html | |
| // Make sure you have the same number of quantity breaks as product variants | |
| <fieldset> | |
| <legend>Quantity Breaks</legend> | |
| <table class="standard-table"> | |
| <tr><td>Enter quantity breaks in ascending order separated by a comma (e.g. 5, 10, 20, 50)</td><td><input type="text" name="breaks" size="50" /></td></tr> | |
| </table> | |
| </fieldset> | |
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
| <form action="/cart/add" method="post"> | |
| {% if product.variants.size > 1 %} | |
| {% if product.options[0] %} | |
| {% assign used = '' %} | |
| <label for="select-one">{{ product.options[0] }}</label> | |
| <select id='select-one' onchange="letsDoThis()"> | |
| {% for variant in product.variants %} | |
| {% unless used contains variant.option1 %} | |
| <option value="{{ variant.option1 }}">{{ variant.option1 }}</option> | |
| {% capture used %}{{ used }} {{ variant.option1 }}{% endcapture %} |