• Resolved Prelevic Milos

    (@prelevicm)


    Hey guys.
    I noticed this function which I believe is causing problems with our plugin.

    /** Store removed_cart_contents to enable undo deleted items */
    		$removed_cart_contents = $wc_cart->get_removed_cart_contents();
    		$wc_cart->empty_cart();
    		$wc_cart->set_removed_cart_contents($removed_cart_contents);

    So, as it seems it empties the cart and populates it again. The issues is we are hooking to the woocommerce_cart_emptied action and when the cart is empty we empty our cookie.

    Now, your empty_cart seems to be triggered every time the page is refreshed which is rather strange.
    How can we detect when your plugin does it so we can stop our plugin from clearing the cookie?

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author algol.plus

    (@algolplus)

    hi

    Unfortunately, we have to do it.
    Our plugin supports a lot of conditions (for example, time range).
    So even if you just reload page – we must re-apply rules to the cart and rebuild it.

    What plugin do you support/develop?

    I’m sorry for late reply, I didn’t get notification from www.remarpro.com.
    thanks, Alex

    • This reply was modified 5 years, 10 months ago by algol.plus.
    • This reply was modified 5 years, 10 months ago by algol.plus.
    Thread Starter Prelevic Milos

    (@prelevicm)

    Tickera but in this case, it’s Seating Chart add-on.
    Is there any way to detect when your plugin is doing it?

    Plugin Author algol.plus

    (@algolplus)

    hi

    Could you share “Bridge For Woocommerce” and “Seating Chart” via helpdesk ?

    We plan to release version 2.0.0 soon.
    We’ll review provided addons and try to make our plugin compatible with it.

    I’m sorry for late reply, I didn’t get notification from www.remarpro.com again!
    thanks, Alex

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Our Hook on the empty_cart clearing our cookie’ is closed to new replies.