• Hello,

    I would like to remove the add to cart button as the product is part of a bundle. Is it possible?

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Facundo Arano

    (@aranofacundo)

    Hi there,

    You can hide the Add to cart button in the quick view modal for a specific product by adding the following CSS code to your site:

    #yith-quick-view-modal .product.post-1234 .cart .single_add_to_cart_button,
    #yith-quick-view-modal .product.post-1234 .cart .quantity {
      display: none !important;
    }

    Keep in mind that you need to replace 1234 with the ID of the product.

    Let us know if this helped you.

    Thread Starter stevebas

    (@stevebas)

    Hello,

    Thanks for the help ! Is it possible to hide this for all the products in quick view as I have a lot of products?

    Thanks,

    Plugin Support crodriguez1991

    (@crodriguez1991)

    Hello there,

    Thanks for contacting us and I hope you’re doing well ??
    Our plugin load the

    woocommerce_template_single_add_to_cart

    In the popup.

    You should talk with bundle developers and ask to hide the add to cart from single product page if the product is part of a bundle.

    In this way, the add to cart button will be hide also on quick view page.

    I hope it helps you.

    Have a good day.

    Thread Starter stevebas

    (@stevebas)

    Hello,

    Thanks for your message.

    Basically the CSS Facundo gave me works but instead of adding the “.product.post-1234” can I replace this part with something else that does this on all the products in the yith quick view? That would be great so I don’t have to surcharge my CSS with all the same lines and only the product id that changes.

    Have a nice day,

    Plugin Support crodriguez1991

    (@crodriguez1991)

    Hello there,

    I hope you’re doing well ??

    If you want to apply it to all products, you’ll need to add the following CSS rule

    #yith-quick-view .single_add_to_cart_button,
    #yith-quick-view .cart .quantity {
      display: none !important;
    }

    Please, try it and let me know.

    Have a good day.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Remove add to cart button’ is closed to new replies.