Hello! I need help removing the ‘Add to Cart’ buttons from specific product collections.
I tried to group those products by adding ‘noshow’ tags and adding the following code to the product.liquid file but did not work. What am I doing wrong?
https://autoboxclub.com/collections/small-toll-pass
{% if product.tags contains 'noshow' %}
{% endif %}
Which theme.
product.liquid is for product pages not collections, you need collection.liquid or similar.
Really for such customizations you should be using either custom-css setting or custom-liquid sections/blocks in those templates to avoid editing code and making themes not be upgradable.
https://help.shopify.com/en/manual/online-store/themes/theme-structure/extend/add-css
If the AtC showing is a theme setting for the collections product grid instead use an alternate template and turn the setting off for those collections assigned that template
https://help.shopify.com/en/manual/online-store/themes/os20/theme-structure/templates#create-a-new-template