• First of all, amazing plugin! I’ve been using the plugin for over a year now, and never had any problems with it.

    But now I’m running into a little thing.
    I would like to place upsell products in my checkout. But the problem is that as soon as one of these upsell products is clicked. The plugin will remove the previously selected product from the cart.

    Is it possible to exclude some products from doing this to all the other products?

    But remove everything again, if a new regular product is added to the cart. It would also be great if it than also removes all the upsell products (If a customer selected one of these earlier by another regular product).

    I hope I explained it as clear as possible. It would be great if you guys could help me with this problem!

Viewing 1 replies (of 1 total)
  • Plugin Author code4life

    (@code4life)

    Hi @ducktoy, how are you? I hope so!
    Unfortunately the plugin does not allow you to exclude products from the empty cart action, sorry. You need to create an ad-hoc function for this.
    I suggest commenting deleting the plugin hook that does this, in the file:

    disable-cart-page-for-woocommerce.php

    on lines 121-123 and to add a custom hook, perhaps using the default WooCommerce hook “woocommerce_add_to_cart”. Find a similar example here:

    https://stackoverflow.com/questions/28365050/how-to-add-filter-or-hook-for-woocommerce-add-to-cart

    from which you can start for your development.

    I hope this information will help resolve your doubts
    Best regards`

Viewing 1 replies (of 1 total)
  • The topic ‘Exclude products from emptying the cart’ is closed to new replies.