You want a See Size Chart button on the product page:
... that once clicked gives you this:
{% if product.options.size == 1 %} | |
{% for variant in product.variants %} | |
{% unless variant.available %} | |
jQuery('.single-option-selector option:contains(' + {{ variant.title | json }} +')').remove(); | |
{% endunless %} | |
{% endfor %} | |
jQuery('.single-option-selector').trigger('change'); | |
{% endif %} |
{% assign total = product.variants | map: 'available' | join: ", " | remove: 'false, ' %} | |
{% assign available = total | split: ',' %} | |
{{ available.size }} of {{ product.variants.size }} left |
{% for option in product.options %} | |
{% if option contains "Color" %} | |
{% assign optionName = "option" | append: forloop.index %} | |
{% assign colors = product.variants | map: optionName %} | |
{% assign colorsFiltered = '' %} | |
{% for colorOption in colors %} | |
{% unless colorsFiltered contains colorOption %} | |
{% assign colorsFiltered = colorsFiltered | append: ', ' | append: colorOption %} | |
{% endunless %} | |
{% endfor %} |
$('.single-option-selector').each(function() { | |
var numOptions = $(this).children().length; | |
if(numOptions == 1) { | |
$(this).hide(); | |
$(this).before( "<p>" + $(this).val() + "</p>"); | |
} | |
}); |
{% assign articles = blogs.news.articles | sort: 'title' %} | |
{% for article in articles %} | |
{{ article.title }}<br> | |
{% endfor %} |
// Requires jQuery of course. | |
$(document).ready(function() { | |
$('.show-comments').on('click', function(){ | |
var disqus_shortname = 'YOUR-DISQUS-USERNAME'; // Replace this value with *your* username. | |
// ajax request to load the disqus javascript | |
$.ajax({ | |
type: "GET", | |
url: "http://" + disqus_shortname + ".disqus.com/embed.js", | |
dataType: "script", |
Hide the thumbnails of variant images on the product page.
.kanban-board { | |
background-color: #fff; | |
} | |
.kanban-card { | |
background-color: white; | |
margin: 8px; | |
box-shadow: 0px 1px 2px #9EB3C0; | |
padding: 10px; | |
border-radius: 2px; |
/Block Reference
)