• benlem77

    (@benlem77)


    Hi guess i just didn’t fin dthe answer but.. i need to clear the cart of all products when the “first” time expires.. My user case is the following..
    User add product #1, then timer start….
    User is redirected to product #2 and make a selection.. then product #3..
    When the timer of Product #1 expire i need the whole cart to be emptied.. .
    I tried “playing” with the settings but i’m unable to solve my problem..
    Regards

Viewing 1 replies (of 1 total)
  • Plugin Author James Golovich

    (@jamesgol)

    There isn’t a way to do this automatically, but you could do it in some custom code.

    There is a ‘wc_csr_before_remove_expired_item’ WordPress action that is triggered when an item is removed, you could use this to then remove all the rest of the items.

    This only called if a user is still browsing the site, if the user navigates away this action won’t be called until they return to the site.

Viewing 1 replies (of 1 total)
  • The topic ‘Clear all product from cart’ is closed to new replies.