Fetching carts with email. #12372
Unanswered
zaidrashid
asked this question in
Q&A
Replies: 1 comment
-
|
Indeed, I don't understand why medusa does this. My current approach is to create a shopping cart for the user directly when the user registers, and save the cart_id in the user's profile. The front end does not give the user the opportunity to create a shopping cart. Every time the user logs in, they use their saved shopping cart id to add items. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
From the docs here, we can only fetch carts by
id. Is there any reason not to be able to fetch a cart based on the user's email?I was wondering how to deal with a scenario where the user clear his cache frequently (or use incognito or different browser) when browsing their cart, where the cart id could not persist locally.
Beta Was this translation helpful? Give feedback.
All reactions