You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to use this package with an API only app and have a separate frontend consume the API to use its cart. How would you approach this? I saw this post but not quite sure what to do with it. Do I save the whole cart serialized in a table attached to a user? What if I want a guest cart?
The text was updated successfully, but these errors were encountered:
Keep track of what they are doing on the frontend ,
and always send all the interactions and generate a new cart based on that .
This would require you to develop your own system of keeping track of items but really it shouldn't be too difficult.
Store items in web storage (that way you can use two windows and know when they update their cart in another window)
Send a request to generate the cart totals , item totals etc.
I'd like to use this package with an API only app and have a separate frontend consume the API to use its cart. How would you approach this? I saw this post but not quite sure what to do with it. Do I save the whole cart serialized in a table attached to a user? What if I want a guest cart?
The text was updated successfully, but these errors were encountered: