How do I make the “Add to Cart” button inactive ?
-
Hello my dear friends!
Please tell me how to implement the function of an inactive purchase button for a product from category X, if the product from category Y is already in the cart?
Hello,
Woocommerce does not provide such an option. We can remove it with CSS. Let us know if you need help.
Best Regards
How to implement it using CSS?
Hello,
Please add this code to the Theme Settings > Custom CSS > Global:
body .woodmart-add-btn{
display:none;
}
body .woocommerce-variation-add-to-cart {
display:none;
}
body .cart:not(.variations_form):not(.grouped_form) {
display:none;
}
Best Regards