Skip to content

Instantly share code, notes, and snippets.

@prosantamazumder
Created August 21, 2023 19:43
Show Gist options
  • Save prosantamazumder/fdd001530e2bb75d27cb481055af4a41 to your computer and use it in GitHub Desktop.
Save prosantamazumder/fdd001530e2bb75d27cb481055af4a41 to your computer and use it in GitHub Desktop.
shopify Product loop with product Json data and display Tags
{%- for product in collections[block.settings.collection].products -%}
{{ product | json }}
{% render 'product-card', product: product, column_wrapper: true %}
{% for tag in product.tags %}
<li><a href="/collections/all/{{ tag | handleize }}">{{ tag }}</a></li>
{% endfor %}
{%- endfor -%}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment