Hide button on out of stock product
-
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;
}
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login