Hello,
I think you'll have to store the items of the shopping cart into the database, this way you can add new items to it.
Giovanni
I thought of using Moltin/Shopping card and he is using sessions to store the contents of the card.
Roelof
I agree you should store the cart in the database as it is great for tracking cart abandonment and repopulating cart (if needed) on return visit.
You can then just assign a user_id to the cart to indicate/change ownership. Presumably you will need to commit the cart to the database at some point anyway (i.e when the purchase/payment is made)
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community