Skip to content
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

Wrong customer/ last registered user mapped to guest user cart after adding shipping address #6889

Open
sumanchy88 opened this issue Mar 31, 2024 · 7 comments

Comments

@sumanchy88
Copy link

Bug report

Describe the bug

For guest user, while adding product to cart and after filling the shipping address details. On click of Continue to delivery button, last registered customer mapped to guest user cart.

A clear and concise description of what the bug is.

System information

Medusa version (including plugins):
Node.js version: v16.15.1
Database: Postgres
Operating system: MacOS
Browser (if relevant): Chrome

Steps to reproduce the behavior

  1. Create a sample store fornt App running
  2. Registered a logged in user by click on Sign-In.
  3. Logout from the account.
  4. Select any product to cart and then click on Go to Cart
  5. Add the shipping address details and email address
  6. Click on Continue to delivery, observe the response of shipping address with email mapped to last registered account
  7. Check the enteries in database for cart id -> customer_id mapped to last registered logged in user.

Expected behavior

customer id should mapped to the guest user account email address.

Screenshots

Step 1: Add the Shipping address details and different email address
image

Step 2: After cart update, added response mapped to different user account
image

If applicable, add screenshots to help explain your problem

Code snippets

If applicable, add code samples to help explain your problem

Additional context

Add any other context about the problem here

@MgStoreLK
Copy link

MgStoreLK commented Apr 9, 2024

@kasperkristensen Please escalate this issue if possible. Thanks
Edit: I had to restart my storefront (starter template) ec2 instance to work around this issue

@sumanchy88
Copy link
Author

@kasperkristensen : Have you got chance to lokk into the issue. This is bit critical for ecommerce application with guest flow.

@alsherif-khalaf
Copy link

same issue

@alsherif-khalaf
Copy link

it is a critical issue in storefront

Copy link
Contributor

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 3 days.

@github-actions github-actions bot added the Stale label Oct 28, 2024
@u11d-bartlomiej-galezowski

Any update? @kasperkristensen @sradevski @olivermrbl @shahednasser
I've also notice the issue.

@devcshort
Copy link

#9848 Fixes this issue

@github-actions github-actions bot removed the Stale label Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants