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

Cart initialization logic on app load #4

Open
uroslates opened this issue Nov 20, 2021 · 0 comments
Open

Cart initialization logic on app load #4

uroslates opened this issue Nov 20, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@uroslates
Copy link
Owner

Cart initialization logic on app load
In order to make any real card work in requires some initialization logic (creating the cart or laoding the existing cart, ...). This should be handled by the cart ComponentStore

Describe the solution you'd like
For Spree url-storefront SDK the cart should be created once application has been initialized (take a look at the Spree API Endpoint)

Once the user sessions are implemented we should prior to above perform the User's Cart retrieval (take a look at the Spree API Endpoint and only if its not available create the new one (as mentioned above).

This should all be implemented within the Spree SDK wrapper (since its custom to 3rd Party Providers) and use within the Cart ComponentStore (indirectly through main StoreSDK service method).

@uroslates uroslates added the enhancement New feature or request label Nov 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant