Skip to content

fix: isCartUserGuest - Incorrect user email information definition in multi-site #20200

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

MehmetSert
Copy link

In multi-site projects, the uid information in cart.user includes the user's email along with the baseSite information.

For example: 7c867be3-d7c6-442b-aff9-7f1c315ee838|[email protected]|apparel-uk

In the isCartUserGuest function in activeCartService, the user's email is checked as "[email protected]|apparel-uk" for the isEmail check. Since the email address contains the "|" character, the isEmail function returns false. After the credit card is saved in the Guest checkout steps, the "cart.user.name" value changes. Since the isEmail function also returns false, checkout.guard cannot be passed and the user needs to set the email again. However, since the email is already set, the user receives an error while setting the email again and cannot continue with the process.

@MehmetSert MehmetSert requested a review from a team as a code owner April 20, 2025 20:20
Copy link

cla-assistant bot commented Apr 20, 2025

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant