Stop items in cart being stored in database
-
I have a b2b model where multiple users need to login to the same account and place orders. However, if they happen to login at the same time there may already be items in the cart.
I’ve tried disabling peristent cart with
add_filter( 'woocommerce_persistent_cart_enabled', '__return_false' );
but this only clears the cart when someone logs out. So if one user is in the middle of an order and someone else logs in they still have items in their cart.
How can I prevent this from happening?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Stop items in cart being stored in database’ is closed to new replies.