Skip to content

Instantly share code, notes, and snippets.

@rafaelss
Created June 11, 2013 13:46
Embed
What would you like to do?
{% assign available_variants = "|" %}
{% for variant in product.variants %}
{% if variant.available %}
{% assign available_variants = available_variants | append: "|" | append: variant.attributes.size %}
{% endif %}
{% endfor %}
{{ available_variants | remove_first: "|" | split: "|" }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment