Hi Steve
I just tested this on a clean install and after switching I’m redirected to the account page, but it’s still functional.
As for cookies, WC does not have ‘login’ cookies of it’s own. What it does have is a cart cookie, but thats tied to the user ID. I don’t think this is related to your issue. The my account page itself does not have any special cookies of it’s own; it’s all based on WordPress user.
Enable debugging (https://codex.wordpress.org/Debugging_in_WordPress) and see what is on the page – it may reveal an error message instead of white screen which will help trace the problem.
Thread Starter
Steve
(@steveholland)
Hi Mike,
Thank-you for your help and for looking into this issue.
I’ll have to do further investigation.
Hey guys
I still have this issue, where when you switch to a user, and add something to their cart, it is not really saving. if the user logs in, they don’t see what i did while i switched to their account.
I got it to work by adding this line to wp-config.php
define( ‘USER_SWITCHING_OLDUSER_COOKIE’, ‘any_random_sting_sjkfjnkasdujk3290jkaskfdkl’);
But it doesn’t work when you have active a caching plugin like WP-Rocket, and/or a security plugin like Wordfence.
I know there are a lot of support threads created for this, i just want to do a quick follow up to see if someone have found a fix. And to subscribe myself to this post hoping it will get resolve.
Thanks for all you guys do.
Curious about the solution
@mikejolley – Hi..If I explain a bit about the issue we are experiencing; When using woocommerce and user switching plugin together, and admin switch to a customer’s account, the cart of the original user(admin) is displayed, instead of the customer’s cart.
So if any items are added by admin in user switch view to cart, customer when logs in will not see the cart items he added, but the admin user’s cart.
-
This reply was modified 6 years, 8 months ago by uthpala89.
This is a pretty serious issue. One of my customers logged in and found my cart items in their cart and theirs were no longer present. Looks like the cart items from the admin user are being moved across user accounts, very frustrating. Any way to remedy this?