How can I hide the 'Add to Cart' button for specific products?

Hi There

@KetanKumar @AVADA

Was wondering if anyone could assist, looking to hide add to cart and pay with paypal button for some of our confectionary range as stock is not always guaranteed and therefore wanted to replace the button with request for a quote / pricing wondering if this could be achieved as we require it on certain products only. Also tried to search for apps. We are currently on the debut theme.

www.favourboxes.shop

Any sort of assistance would be appreciated

Many Thanks

Favour Boxes

Find the code ofr the atc btn and then comment it out inscase you want to rever back

{% comment %}

{% endcomment % }

Hi there

Thank you for your reply. Please can you assist further as we are slightly confused. We only require to hide add to cart button for certain products within our confectionery range.

many Thanks

1 Like

@FavourBoxes

yes, please try this way

{% unless product.title == 'your product title' %}
  you add to cart button code on product page
{% endunless %}
1 Like

Hi There

Thank you soo much for your early reply however still abit confused please could kindly explain in steps as to where to insert the code. Please also confirm if this will only hide the two buttons for selected products

Looking forward to you response

Many Thanks

1 Like

@FavourBoxes

yes, please

{% unless product.title == 'your product title' or unless product.title == 'your product title' %}
  you add to cart button code on product page
{% endunless %}

Hi there

where do we insert this code soo confused is there any chance you could do this for us on our website

@FavourBoxes

can you please share your product url if you have hide add to cart button and product page code

Hi There

Thank you for your reply. The product URL is the following https://favourboxes.shop/pages/confectionary

however as mentioned we require the add to cart button and pay with paypal button to be removed on only some of the products.

We will also email if you separately with the store password so that you can edit the code,

Many Thanks

1 Like

@FavourBoxes

yes, please send email