Hide add to cart button for specific products
-
Hello,
I wish i could hid quantity and add to cart button for specific produts backorders ( simple and variable products). I have allready use a snippet to change the text for backorder product but i can’t hide de quantity and add to cart button. Even if i can replace it by another button it will be great.
Thanks
Attachments:
You must be
logged in to view attached files.
Hello,
I saw the screenshot you attached. Sorry but there is no option in Theme Settings for that. Because the products are WooCommerce functionality and our theme doesn’t influence.
You can try adding the following Custom CSS code in the Global Custom CSS area under Theme Settings >> Custom CSS.
.product-template-default.single.single-product.postid-49 .product-image-summary .cart {
display: none;
}
Note: The above CSS will hide the add to cart and quantity button from the product whose id will be “49” and it will hide it from the single product page only it will not work for the shop page.
You can set the product id according to your needs.
Best Regards.
Hi, first thanks a lot for your answer. But the mean of my first question is to hide it for all the product in backorder (where there is not stock but the client can see a message for orderin the product). The css that you gave me will not fit with my needs because i muste do this for any of the product that i need mannually. If there is any snippet Js or css that can hide the products in backorder automaticcally ?
Thanks a lot
Hello,
You are Most Welcome.
Sorry, but we could not help you with this as the products are WooCommerce functionality and our theme doesn’t influence.
You can try contacting the WooCommerce support for further help.
Best Regards.