Jump to content

Hide add to cart button on certain products

Recommended Posts

Hi,

Would somebody be able to help, I need to hide the add to cart and quantity on certain products only. I've managed to use code in the forum to remove the price to POA when I set price at 0.00 on certain products, but add to cart is still there and quantity. 

Many thanks

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

Top Posters In This Topic

Top Posters In This Topic

First, create a tag with name

natc

Next, assign this tag for all products where you want to remove Add to Cart, Quantity

Next, use this code to Website > Website Tools > Custom CSS

/* Hide add to cart quantity */
.tag-natc div.sqs-add-to-cart-button-wrapper {
    display: none !important;
}
/* hide quantity */
.tag-natc div.product-quantity-input {
    display: none !important;
}

 

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.