How to remove "Add to cart" button from a particular collection template?

Solved

How to remove "Add to cart" button from a particular collection template?

CNDY_123
Excursionist
50 0 5

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)

Screenshot 2024-10-13 140438.png

Accepted Solution (1)
BSSCommerce-B2B
Shopify Partner
1972 564 568

This is an accepted solution.

@CNDY_123, let try this one before </head>

{% if template.suffix contains 'gift-collection' %}
  <style>
    .quick-add {
        display: none!important;
    }
  </style>
{% endif %}

Hope it helps you 😊

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

View solution in original post

Replies 6 (6)

theycallmemakka
Shopify Partner
1811 438 473

Hi @CNDY_123 ,

 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code just above tag </body>

{% if template.name contains 'gift-collection' %}
  <style>
    .quick-add {
        display: none!important;
    }
  </style>
{% 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

Support Me: Buy me a Coffee


For quick response - Message Me


Ping me at: theycallmemakka@gmail.com

CNDY_123
Excursionist
50 0 5

Hello @theycallmemakka

Thanks for the response!...  but the code didnt work 😞 .. "Add to cart" button still visible. Please check the images below

 

Screenshot 2024-10-13 152538.pngScreenshot 2024-10-13 152559.png

BSSCommerce-B2B
Shopify Partner
1972 564 568

@CNDY_123, could you kindly share your store url?

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

CNDY_123
Excursionist
50 0 5

HI @BSSCommerce-B2B 

 

URL : cottoncandybabyshop.com

           Axldream@123

BSSCommerce-B2B
Shopify Partner
1972 564 568

This is an accepted solution.

@CNDY_123, let try this one before </head>

{% if template.suffix contains 'gift-collection' %}
  <style>
    .quick-add {
        display: none!important;
    }
  </style>
{% endif %}

Hope it helps you 😊

B2B Wholesale Solution: Streamline your B2B operation with advanced features like wholesale registration forms, custom pricing.


B2B Portal, Quote, Net 30: Speed up purchasing and streamline your quotation process with advanced features like quick order, request for quote.


B2B Lock Password Protect: Easily control access to pages, products, and pricing with robust features.


BSS Commerce - Full-service eCommerce Agency I Use Shopify for 1$ in the first month now

CNDY_123
Excursionist
50 0 5

Hey @BSSCommerce-B2B ,

 

Awesome buddy!! worked perfectly when pasted above head tag.

 

Thanks a ton!