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
| <div class="widget"> | |
| <h3>Style by Color</h3> | |
| <?php | |
| $tags = get_tags(); | |
| foreach ($tags as $tag) { | |
| $tag_link = get_tag_link( $tag->term_id ); | |
| $background = ' ' . $tag->slug; | |
| $html .= "<a href='{$tag_link}'><span style='background:{$tag->slug};'></span>"; | |
| $html .= "{$tag->name}</a>"; | |
| } |
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="custom monogram"> | |
| <label>ADD A MONOGRAM:</label> | |
| <input type="text" onkeyup="caseChange()" id="monogram" maxlength="3" /> | |
| <p class="notes">Please enter your monogram here in the correct order: first, last, middle. Monogram may not be changed to another style or full name.</p> | |
| </div> <!-- end .custom .monogram --> | |
| <script> | |
| function caseChange() { | |
| var str = document.getElementById('monogram').value; | |
| var one = str.substring(0,1); |
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
| {{ p.first }}{% endunless %}: {{ p.last | newline_to_br }} | |
| <textarea class="hidden" id="{{ p.first | handle }}-{{ item.product.handle }}" name="attributes[{{ p.first | handle }}-{{ item.product.handle }}]" cols="10" rows="10">{{ p.last }}</textarea> |
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 item in cart.items %} | |
| {% capture cart-permalink %}{{ item.id}}:{{ item.quantity }}{% unless forloop.last %},{% endunless %}{% endcapture %} | |
| {% endfor %} | |
| <a href="/cart/{{ cart-permalink }}">checkout</a> |
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
| // Existing Form | |
| <form action="http://bridal-survival.myshopify.com/cart/add" method="post"> | |
| <input type="hidden" name="id" value="{{ variant.id }}" /> | |
| <input type="hidden" name="return_to" value="back" /> | |
| <input class="buy" type="submit" value="{{ variant.id }}" /> | |
| </form> | |
| // New Form |
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 and customer.tags contains 'wholesale' %}{% assign wholesale-customer = true %}{% endif %} | |
| {% for variant in product.variants %}{% if variant.title contains 'wholesale' %}{% assign wholesale-product = true %}{% endif %} | |
| {% assign price = product.price_max %} | |
| {% if wholesale-customer and wholesale-product %} | |
| {% for variant in product.variants %} | |
| {% if variant.title contains 'wholesale %} | |
| {% assign item-count = item-count | plus:1 %} | |
| {% unless variant.price < price %} | |
| {% assign id = variant.id %} |
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 article in blogs.reviews.articles %} | |
| {% assign article-handle = article.title | handle %} | |
| {% if article-handle == product.handle %} | |
| {% assign review-count = article.comments_count %} | |
| {% paginate article.comments by 50 %} | |
| {% for comment in article.comments %} | |
| {% assign star-count = star-count | plus:comment.name %} | |
| {% endfor %} | |
| {% endpaginate %} | |
| {% endif %} |
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
| <input type="checkbox" id="product" onchange="searchType('product')" /> Products<br /> | |
| <input type="checkbox" id="article" onchange="searchType('article')" /> Blog Posts<br /> | |
| <input type="checkbox" id="page" onchange="searchType('page')" /> Pages<br /> | |
| <input type="checkbox" id="all" onchange="searchType('all')" /> All<br /> | |
| <form id="search-form" name="search" action="/search"> | |
| <input type="hidden" id="type" name="type" value="" /> | |
| <input type="text" id="q" name="q" value="" class="search replace" title="Search" /> | |
| <button type="submit" id="search-submit">search</button> | |
| </form> | |
| <script type="text/javascript"> |