Retrieve product tags/collections/info from current product on product page

Tourist
12 0 1

Is this possible?

 

That is, if a certain product is showing in /products, can I get its tags or collections?

 

Thanks!

Pelle

0 Likes
Highlighted
Tourist
12 0 1
 found it. if anyone ever gets the same problem:
 
if template == 'product' %}
      {% for collection in product.collections %}
        {% if collection.handle contains 'your handle' %}
        "your code"        
        {% endif %}
{% endfor %}
{% endif %}
1 Like