Home Forums WoodMart support forum Hide add to cart button for specific products

Hide add to cart button for specific products

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

    aubrillant2020
    Participant

    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.
    #233782

    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.

    #233796

    aubrillant2020
    Participant

    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

    #233898

    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.

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