Hide button on out of stock product
Shop / WooCommerce
3
Posts
2
Posters
425
Views
1
Watching
-
Hi, there is a way to disable a button on out of stock product?
I ve customized it by "ADD TO CART" plugin with a cart icon and it work well but when product is out of stock it show a empity square.
I ve added also this css code :.woocommerce a.button.add_to_cart_button{
border-radius: 50%;
}
-
Try using: display: none !important; on the css selector.
-
Try using: display: none !important; on the css selector.
@alasdair17 said in Hide button on out of stock product:
display: none !important;
thanks for the reply. what is the class that i need to use? i can't found it
Edit. Solved.
here the css code:
.outofstock .button
{
display: none !important;
}
Online Users
Forgot your key, lost your files, need a previous Lay Theme or Addon version?
Go to www.laykeymanager.com