You want a See Size Chart button on the product page:
... that once clicked gives you this:
| {% 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 %} |
| {{ '//code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css' | stylesheet_tag }} | |
| {{ '//ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js' | script_tag }} | |
| <div style="width:300px; clear:both;"> | |
| <p> | |
| <label for="date">Pick a delivery date:</label> | |
| <input id="date" type="text" name="attributes[date]" value="{{ cart.attributes.date }}" /> | |
| <span style="display:block" class="instructions"> We do not deliver during the week-end.</span> | |
| </p> | |
| </div> |
| jQuery(function($) { | |
| $('form[action="/cart/add"]').submit(function() { | |
| var formIsValid = true; | |
| var message = "Please fill this out and you will be able to add the item to your cart."; | |
| $(this).find('[name^="properties"]').filter('.required, [required="required"]').each(function() { | |
| $(this).removeClass('error'); | |
| if (formIsValid && $(this).val() == '') { | |
| formIsValid = false; | |
| message = $(this).attr('data-error') || message; | |
| $(this).addClass('error'); |
| {% comment %} | |
| See https://docs.shopify.com/themes/customization/products/how-to-add-a-pick-an-option-to-drop-downs | |
| {% endcomment %} | |
| {% unless product.selected_variant %} | |
| {% if product.variants.size > 1 %} | |
| <script> | |
| var $addToCartForm = $('form[action="/cart/add"]'); | |
| if (window.MutationObserver && $addToCartForm.length) { | |
| if (typeof observer === 'object' && typeof observer.disconnect === 'function') { |
| {% if template contains 'product' %} | |
| {% assign size_options = 'size,taille' | split: ',' %} | |
| {% assign size_chart_text_link = 'Size chart' %} | |
| {% assign has_size = false %} | |
| {% assign size_index = 0 %} | |
| {% for option in product.options %} | |
| {% assign downcased_option = option | downcase %} | |
| {% if has_size == false and size_options contains downcased_option %} | |
| {% assign has_size = true %} | |
| {% assign size_index = forloop.index0 %} |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |