"if product.tags contains" does not work

SeanPoko
New Member
1 0 0

I'm trying to show product tags only including "label__", but it does not work.
I don't know why.

Any ideas and feedbacks would be appreciated.

{% for tag in product.tags %}
{% if product.tags contains "label__" %}
<div class="ProductPage-labelItem">{{ tag | remove: "label__" }}</div>
{% endif %}
{% endfor %}  

 

Replies 0 (0)