Hello!
I’d like to know the best way to get product types data in a specific collection.
What I’m trying to create is something like:
{% for product_type in collections.types %}
- {{ product_type | link_to_type }}
{% endfor %}
but, I couldn’t find types object under the collections object.
(I think this is how to get product types from ALL products).
{% for product_type in shop.types %}
{% endfor %}
I could create a link something like this one by one instead (and this should work fine).
But, is there a better way to get types in a specific collections??
product-type1
thank you.