You want a See Size Chart button on the product page:
... that once clicked gives you this:
| <script> | |
| jQuery(document).ready(function($){ | |
| var images = []; | |
| {% for image in product.images %} | |
| images.push({url: "{{ image | product_img_url: 'medium' }}", alt: "{{ image.alt }}"}); | |
| {% endfor %} | |
| var thumbnails = $(".thumbs"); |
Only the images associated to the currently selected variant are shown. Other images are hidden.
| {% comment %} | |
| Source: https://gist.github.com/carolineschnapp/9122054 | |
| If you are not on a collection page, do define which collection to use in the order form. | |
| Use the following assign statement, replace 'your-collection-handle-here' with your collection handle. | |
| {% assign collection = collections.your-collection-handle-here %} | |
| Use the assign statement outside of this comment block at the top of your template. | |
| {% endcomment %} | |
| {% paginate collection.products by 100 %} |
| <!-- add the vendor as product tag to product then use this code in collection.liquid --> | |
| <!-- if we are on a collection page that is either custom or smart --> | |
| {% if collection.url != blank %} | |
| <h4>Shop by vendor:</h4> | |
| <ul> | |
| {% for product_vendor in collection.all_vendors %} | |
| <li> | |
| {% if current_tags contains product_vendor %} | |
| <a class="active" href="{{ collection.url }}">{{ product_vendor }}</a> | |
| {% else %} |
| <script> | |
| // (c) Copyright 2016 Caroline Schnapp. All Rights Reserved. Contact: mllegeorgesand@gmail.com | |
| // See https://docs.shopify.com/themes/customization/navigation/link-product-options-in-menus | |
| var Shopify = Shopify || {}; | |
| Shopify.optionsMap = {}; | |
| Shopify.updateOptionsInSelector = function(selectorIndex) { | |
| <script type="text/javascript"> | |
| /* | |
| re: http://ecommerce.shopify.com/c/ecommerce-design/t/land-on-specific-variant-when-loading-product-page-147793 | |
| Assumes: | |
| -------- | |
| * that you are calling the javascript once the select element is available | |
| * you have a select element on the page like: |
| <form action="/cart/add" method="post" style="text-align:center;"> | |
| <select name="id"> | |
| {% for variant in product.variants %} | |
| {% if variant.available %} | |
| <option value="{{ variant.id }}">{{ variant.title }} - {{ variant.price | money }}</option> | |
| {% else %} | |
| <option disabled="disabled">{{ variant.title }} - Sold Out</option> | |
| {% endif %} | |
| {% endfor %} | |
| </select> |
| var MGUtil={ | |
| data:[], | |
| ini:0, | |
| total:0, | |
| addItem:function(qty,id,properties,callback) { | |
| var params = {quantity:qty,id:id}; | |
| if(properties != false){ | |
| params.properties = properties; | |
| } | |
| $.ajax({ |
| <script type="text/javascript" charset="utf-8"> | |
| //<![CDATA[ | |
| jQuery(function() { | |
| jQuery(window).unload(function() { | |
| var params = { | |
| type: 'POST', | |
| url: '/cart/update.js', | |
| data: jQuery('form[action="/cart"]').serialize(), | |
| dataType: 'json', | |
| async: false |