You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Items added to the cart while signed in will be refreshed when you sign out and then sign back in.
Reproduce with the following steps:
Sigin in the User
Put some items in a cart
Sign out User
Sign in same User
See the cart -> there is no items which was put on step2
Cause:
On the step3 (Sign out User), cart will be newly created as guest user. On the step4 newly created cart will be used for signed in user.
Ideal behavior:
On the step4,
If there are no items in guest cart and there are items in signed user cart, signed user cart will be used
If there are items in guest cart and there are items in signed user cart, pop up shown which asks which is used between guest cart and signed user cart
The text was updated successfully, but these errors were encountered:
Commenting as this is an interesting issue I'd like to try taking on. The general concept of cart persistence and merging across guest and logged-in sessions is a common feature in modern e-commerce.
Issue:
We need to define and implement the expected behavior for the shopping cart when users interact with it across different states: as guests, logged-in users, and when transitioning between these states (e.g., adding items as a guest and then logging in, or logging out while having items in the cart).
Acceptance Criteria:
Cart Merging Logic: Ensure that when a user logs in after using a guest cart, the items in both carts are merged, with quantity updates for duplicate items.
Persistent Cart Across Devices: Investigate and potentially implement a feature to keep the cart synchronized across multiple devices and browsers when users log in or out.
Guest Cart Expiry: Define how long guest carts should persist in case the session is inactive and how to handle cart expiry gracefully.
Items added to the cart while signed in will be refreshed when you sign out and then sign back in.
Reproduce with the following steps:
Cause:
On the step3 (Sign out User), cart will be newly created as guest user. On the step4 newly created cart will be used for signed in user.
Ideal behavior:
On the step4,
The text was updated successfully, but these errors were encountered: