Created
May 3, 2013 17:00
-
-
Save kyleaparker/9a3c51915953e98738d8 to your computer and use it in GitHub Desktop.
List products by product type
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
{% 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