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

[Suggestion] usePersistedCart #107

Open
kogan007 opened this issue Oct 25, 2021 · 2 comments
Open

[Suggestion] usePersistedCart #107

kogan007 opened this issue Oct 25, 2021 · 2 comments
Labels
enhancement New feature or request v2

Comments

@kogan007
Copy link

This is a suggestion for a future release

POST /customers/attributes
with a new field for a customer cart.

PUT /customers/attributes
on cart creation with the cart ID (and date created?)

On login, have the result return the old cart id from the customer object.
Create a usePersistedCartHook that when submitted with a valid cart id replaces the current cart cookie with the new one.

OR a useMergeCart hook? That gets the product ids from the old cart and adds them to the new one.

@jorgemasta
Copy link
Contributor

This is a good addition for v2. Thanks @kogan007 !!

@jorgemasta jorgemasta added v2 enhancement New feature or request labels Nov 2, 2021
@bc-stephen-hilliard
Copy link

Following up on if this is still an open issue/ enhancement?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request v2
Projects
None yet
Development

No branches or pull requests

3 participants