Jump to content

Hide Add to Cart Button with CSS


Recommended Posts

Hi everyone,

 

I can't figure out how to hide the "add to cart" button from a product category. 

 

I managed to hide the quantity field and price (and other things) by using CSS in global.css 

The code I used to hide things looked like this

 

body.category-5 div.content_price{
display:none;
}

I just can't figure out what code belongs to the "add to cart" button so I can hide it. Any thoughts?

 

Thank you. :)

Link to comment
Share on other sites

Didn't work, but thanks S-HAMMANI. As I want it to only affect one category, I typed in your code like this (maybe I  messed it up?):

body.category-5 .button.ajax_add_to_cart_button{    
display:none;}

Also, interesting observation... in the back office, the two products that have hidden the add to cart button have a minimum order quantity of 6. The product listing (called "emperor") that still shows the "add to cart" button does not have a minimum order quantity. I gave it a minimum order qunatity "just to see what would happen" and the add to cart button became hidden. But when I removed the minimum order quantity, the add to cart button was revealed again. :-/ I don't want this product to have a minimum

order quantity. :P But I want to hide the add to cart button.

 

This is really perplexing to me.

Link to comment
Share on other sites

×
×
  • Create New...