unchained
unchained copied to clipboard
Duplicate Cart item
Describe the bug After adding products as a user that is not logged in and logging into an account that exists cart items added as a guest user are not merged, instead, are shown as a separate product.
To Reproduce Steps to reproduce the behavior:
- log in using an existing user account
- Add product to the cart
- log out
- login in as a guest user
loginAsGuest - add the same product to the cart
- log in to the user account in step one
The current result is the 2 identical products will be in the cart as a separate cart item
Expected behavior Items added into a cart as a guest user should be merged to an existing user account when a user log in.