D
D
dimonfreeman2021-03-23 12:24:41
Vue.js
dimonfreeman, 2021-03-23 12:24:41

How to put the desired products in the VUE cart using the link?

Tell me how to implement so that you can share a basket with goods to another user.
Now the goods are stored in the cache.
I think in the url to pass the id of the product.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Yarkov, 2021-03-23
@dimonfreeman

Pass product id in array in url

S
Sergey Romanov, 2021-03-23
@Serhioromano

There are only 2 ways.
1. The basket must be saved on the server. In an app that needs to share carts, this is the perfect way. Because after you have shared the basket, you can change it, and if you have transferred the ID, then nothing will change for the other person. Or, for example, another person wants to correct the goods in the basket, you will not see what he has changed.
2. As Aleksey Yarkov said , send a list of product IDs. But it's not a basket. This is just a list of goods, it turns out that a new basket will be created for another user using this URL. So you don't share a shopping cart, just a list of items.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question