Cart feature question #807
Answered
by
rez1dent3
hamzaelmaghari
asked this question in
Q&A
-
Hello devs! I have question about the cart feature, is it dynamic for each user? I mean does it relying on session data? I want to implement a Cart model that rely on database to keep that data saved ... if I went trough this situation, should I extend Thanks 🙏 |
Beta Was this translation helpful? Give feedback.
Answered by
rez1dent3
Nov 28, 2023
Replies: 1 comment 2 replies
-
Hello. There are no sessions in the cart, objects must be stored somewhere on your side and then added to the cart (each time). |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You store the cart somewhere and then fill it with the necessary items and quantities before purchasing.
If I understand your task correctly, then the example from the documentation suits you:
https://bavix.github.io/laravel-wallet/#/cart?id=fill-the-cart