Skip to content

Instantly share code, notes, and snippets.

@kyleaparker
Created May 3, 2013 17:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kyleaparker/9a3c51915953e98738d8 to your computer and use it in GitHub Desktop.
Save kyleaparker/9a3c51915953e98738d8 to your computer and use it in GitHub Desktop.
List products by product type
{% for product_type in shop.types %}
<h3>{{ product_type | link_to_type }}</h3>
{% for product in collections.all.products %}
{% if product.type == product_type %}
{{ product.title }}
{% endif %}
{% endfor %}
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment