How can I clean the cart when the user clicks the ‘Buy on WhatsApp’ button on the cart page and leaves the site?
Thanks in advance
]]>add_action(‘wp_logout’,’custom_logout’);
function custom_logout() {
//Empty the cart on logout
WC()->cart->empty_cart();
}
I would like the cart to be cleared for all users when they log out.
Thanks!
]]>As I said, I am in alpha?and have gotten the site close to where I would like it (I am going to be doing some A/B testing).
Everything works just fine and I am able to make purchases successfully (which is more than I can say for my previous plugin). However, while testing an additional purchase, I am unable to clear the cart or “remove this item”.
Before I take this to the beta stage – I have some volunteers for testing – I would like to get this particular issue cleared up.
Using the Travelify theme.
Thanks in advance for any help
thegcgeek
P.S. I am moving from another ecommerce solution to Jigoshop?and if the A/B testing goes as planned, then I will be purchasing additional shipping and payment?options.
]]>I’m new with integrating dragonpay to the woocommerce cart.
I just want to ask how will this clear the cart once the payment is successful?
Thank you very much.
Regards,
Vic
https://www.ads-software.com/plugins/woocommerce-payment-gateway-dragonpay/
]]>I have a client with a user complaining they can’t clear their cart. Is there a way to manually clear the cart or reset the session for one user? I realize the sessions for logged in users are stored in the database. What table are they stored in?
Most of the time this is a caching issue, and it may even be fixed by the user clearing their browser cache, but that’s difficult to convey through a client to an end user. I just want to make sure the cart is clean on our end before I pass the problem back to the user.
https://www.ads-software.com/plugins/jigoshop/
]]>https://www.ads-software.com/plugins/woocommerce-payu-latam-gateway/
]]>