Reputation: 1543
I started off adding items to a cart using a non-logged in user. Added a product to the cart and then I realized I already have an account. I just fill up my details and gets logged in. What I see in the cart is now the item still remains in the cart what I have added when I was performing checkout as an anonymous user.
The sessions for anonymous user and authenticated user should be different and hence the items.
Is it a bug or am I doing something wrong? Your help is really appreciated.
Upvotes: 1
Views: 349
Reputation: 748
This is working as intended. As anon, you can start shopping and your cart won't get lost when you login or register. That said, you can create a rule to empty the cart on login; which in my opinion is a bad user experience.
Upvotes: 3