Skip to content

Instantly share code, notes, and snippets.

@ShopifyEng
Created October 20, 2020 15:54
How to do an in-depth liquid render analysis with the Shopify Theme Inspector Chrome extension - collection-loop-nested-2.liquid
// snippets/product-tile.liquid
<h3>{{ product.title }}</h3>
{% for option in product.options_with_values %}
<p>
{{ option.name }}:
{% for value in option.values %}
{{ value }}
{% endfor %}
</p>
{% endfor %}
{% for variant in product.variants %}
<p>
{% for option in variant.options %}
{{ option }}
{% endfor %}
- {{ variant.id }}
</p>
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment