{% if product.tags contains prod.title %} is not working. If I pass the static value with quote like- {% if product.tags contains ‘467455’ %} , it is working but pass the variable, not working. Please guide.
-
{% paginate collections.all.products by 1000 %}
{% for prod in collections.all.products %}
-
{{ prod.title }}
{{ prod.price | money }} {%- if prod.compare_at_price > prod.price -%}
{{ prod.compare_at_price | money }}{%- endif -%}
{% capture counter %}{{ counter }}*{% endcapture %}
{% endif %}
{%- comment -%}here the issue if I use static value like=‘785643754’, it is working but when pass the variable. it is not working {%- endcomment -%}
{% if prod.tags contains product.id %}
{% endfor %}
{% endpaginate %}
Please help that how to fix. Its urgent
Unsolicited mentioned removed by Community Moderator