J
J
juan_chikatilo2022-03-23 19:03:01
Web development
juan_chikatilo, 2022-03-23 19:03:01

How to correctly access the shopping cart (vue, laravel)?

Now I'm making a shopping cart for an online store and I want to store it in the database, but I'm worried about the fact that there will be constant requests to delete, add, increase the quantity to the database. How to properly implement a shopping cart?
I still think that it is possible to store goods in localStorage, and when the user goes to the basket tab, the data will be sent to the database.
THOSE. the trash tab will be the data save point.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Glory, 2022-03-23
@besogonskiy

nope. If the user is registered and logged in, then any added to the cart store on the backend. And if it is not yet logged in, then in the lockstore.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question