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
When a customer / user has an active shopping cart linked and the user is changing his / her email address, the shopping cart event is getting triggered and a new user with the old email (probably the old cart where the old email is in) is getting created. So when you want to change your email back to the old one, this is impossible because there is already an account with that email address
Steps to reproduce
Create a user in craft
Make an active shopping cart for that user with an address linked
Change the email of this user
Trigger the _getCart function that will get the cart for the current session
A new user is getting created with the old email before the email update
Expected behavior
The cart is getting updated with the new email and a new user is not getting created.
Actual behavior
A new user is getting created with the old email that is probably still linked in the active cart
Craft CMS version
4.4.6
Craft Commerce version
4.2.6
PHP version
8.1 / 8.0
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:
What happened?
Description
When a customer / user has an active shopping cart linked and the user is changing his / her email address, the shopping cart event is getting triggered and a new user with the old email (probably the old cart where the old email is in) is getting created. So when you want to change your email back to the old one, this is impossible because there is already an account with that email address
Steps to reproduce
Expected behavior
The cart is getting updated with the new email and a new user is not getting created.
Actual behavior
A new user is getting created with the old email that is probably still linked in the active cart
Craft CMS version
4.4.6
Craft Commerce version
4.2.6
PHP version
8.1 / 8.0
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: