Jump to content

Removing "Add to Cart" button for specific product listing pages, while keeping it on others

Recommended Posts

Hi there, 

Appreciate any help. I have a total of 7 individual product listing pages -- I want to remove the "Add to Cart" and "Quantity" buttons from 6 of these pages while keeping the default template design that has those buttons. 

Currently, I have deployed this code:
.sqs-add-to-cart-button-wrapper,
.product-quantity-input {
  display:none!important;
}

which has removed the "add to cart" and "product quantity" button on ALL my product listing pages, including the one page that I wish to have by default. 

This is the page I want to have those buttons/features to remain: https://www.mettlewares.com/all-products/p/gift-card-7lk6p-e26hn

Since the layout is determined by the commerce app, I've not been able to make changes by indicating the sectionID of the page.

Is there a better way to go about doing this? Thanks, I greatly appreciate any help you can give.

Link to comment
  • Replies 1
  • Views 190
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

The url doesn't exist. Can you check it again?

You can also try edit that product > Additional Info > Add a Code Block > Use this code

<style>
  .sqs-add-to-cart-button-wrapper,
.product-quantity-input {
  display: block !important;
}
</style>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.