Home Forums WoodMart support forum How do I make the “Add to Cart” button inactive ?

How do I make the “Add to Cart” button inactive ?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #395122

    night_twister
    Participant

    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?

    #395157

    Hello,

    Woocommerce does not provide such an option. We can remove it with CSS. Let us know if you need help.

    Best Regards

    #395225

    night_twister
    Participant

    How to implement it using CSS?

    #395386

    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

Viewing 4 posts - 1 through 4 (of 4 total)