Turn off persistent cart
-
Is there a way to turn off the persistent cart (shopping cart saved in usermeta table for later use) feature in WooCommerce without updating the plugin core files?
One of my client websites (an association) uses a single generic login account for about 200 users to access member content. The persistent cart feature follows the user. As a result each member will “share” the same shopping cart. What I need is to only store the cart information locally on the computer the user is on (e.g., sessions) and so not tie it to the account.
I’ve been able to successfully accomplish this by commenting out the persistent cart update code in the WC_cart class. This is obviously a very bad solution but I did not see where the vendor allows turning this thing off, either programatically, through some define, or using an admin option.
I don’t think my case is that rare though I do think it is uncommon. I would think other would want to turn off this feature too.
Thanks.
- The topic ‘Turn off persistent cart’ is closed to new replies.