Hello, looking for advice!
I have a few digital products that are not for sale in my store - they’re displayed with the other goods, but when you open the product page, you can click the link to buy it somewhere else. The problem is they have quick add buttons on mainpage, or on collection page. I need to hide quick add buttons for digital products.
I tried using the following code in card-product.liquid:
{% unless product.collections contains ‘digital’ %}
…(all the quick add code)…
{% endunless %}
=== no result ![]()
I tried also using tags and {% unless product.tags contains ‘digital’ %} – no result.
I tried changing names and {% unless product.title contains ‘digital’ %} – no result.
I thought “maybe I’m placing the code in wrong place?” - and, for experiment, changed UNLESS to IF. All of the quick add buttons for all products were hidden (including the digital products). So I guess the place is correct, but I’m doing something wrong.
Any advice much appreciated! Theme Dawn 2.0