Remove Add to Cart button for some products

Aivly
New Member
5 0 0

Aivly_0-1619436287144.png

Hello Community,

I have included an example of what I wish to get rid of on only some of my products that I have featured. I want to remove the add to cart button for all our feed and bedding that we sell so we cannot get online orders through, however I still wish for the pick-up to be displayed because that is an option if they want to call the store and order.

Kind regards

Aivly.

 

0 Likes
Niki_S
Explorer
68 5 14

Hi @Aivly,

You will need to edit the code in the product-template.liquid file.

In the file, find the section with the add to cart button.

If you have one identifer for the products, which shouldn’t have the add to cart (e.g products with a title shirt), you can use unless statement:

{% unless product.title contains “shirt” %}

Here the code for the add to cart button

{% endunless %}

 

0 Likes