Hi
How do we remove “Add to cart” button from a particular collection template.
I have created a Gift card collection and i dont need Add to cart button on that collection page.
I have created another collection template and i want to remove add to cart buttons from that template.
(As shown below)
Hi @CNDY_123 ,
Follow these Steps:
- Go to Online Store
- Edit Code
- Find theme.liquid file
- Add the following code just above tag
{% if template.name contains 'gift-collection' %}
{% endif %}
If you require further help to optimize your store, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated. And if this solves the problem, please Mark it as Solution!
Best Regards,
Makka
Hello @theycallmemakka
Thanks for the response!.. but the code didnt work
.. “Add to cart” button still visible. Please check the images below
@CNDY_123 , could you kindly share your store url?
@CNDY_123 , let try this one before
{% if template.suffix contains 'gift-collection' %}
{% endif %}
Hope it helps you 
Hey @BSSCommerce-B2B ,
Awesome buddy!! worked perfectly when pasted above head tag.
Thanks a ton!