I have this code, it is a condition to show and not show the BUY button. On the product page it works perfectly but it does NOT work in the collection, what’s wrong with it, how can it work well?
Thank you.
class="{% if current_tags contains "HideProduct" and localization.country.iso_code == 'US' %} hideButton {% endif %}