Last active
December 23, 2021 10:25
-
-
Save keithgreer/de8ce1b80ec38e55d066872645fcce4a to your computer and use it in GitHub Desktop.
Shopify: List product variations on collection pages - https://keithgreer.dev/shopify-list-product-variations-on-collection-pages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% comment %}{% for option in product.options %} | |
{% if option == 'Weight' %} | |
{% assign index = forloop.index0 %} | |
{% for variant in product.variants %} | |
{{ variant.options[index] }} | |
{% endfor %} | |
{% endif %} | |
{% endfor %}{% endcomment %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment