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
It appears that the intended logic that only restored a user's previous cart when logging in if their current cart is empty has gone missing at some point. It is still referenced in a code comment, but I don't see anywhere that would actually implement that. As a result, when logging in after adding items to my cart, the cart is emptied.
Steps to reproduce
Without logging in, add some items to your shopping cart
Log into an existing user account that does not have a previous saved cart
Expected behavior
Line items added before logging in should still be present in the cart.
Actual behavior
The cart is empty
Craft CMS version
4.8.6
Craft Commerce version
4.5.3
PHP version
8.1
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
No response
The text was updated successfully, but these errors were encountered:
Description
It appears that the intended logic that only restored a user's previous cart when logging in if their current cart is empty has gone missing at some point. It is still referenced in a code comment, but I don't see anywhere that would actually implement that. As a result, when logging in after adding items to my cart, the cart is emptied.
Steps to reproduce
Expected behavior
Actual behavior
Craft CMS version
4.8.6
Craft Commerce version
4.5.3
PHP version
8.1
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
No response
The text was updated successfully, but these errors were encountered: