bazar
bazar copied to clipboard
[QUESTION] Converting carts to orders
- Bazar version: 0.9
- Laravel version: 8
- PHP version: 8
- Database engine & version: mysql 5.7
Is your feature request related to a problem? Please describe
Just a question on how to implement checkout flows. Looking for docs on how to convert a cart to an order. Currently, my process is:
- User adds item to cart (this creates an "item" record with "cart" as the "type")
- User checks out
- Backend creates order, attaches items from cart, etc.
My question is, when I attach items to the order, this will insert additional "items" with "order" as the "type." Is it better to "convert" the existing items to "order" type?
Also, after the order is created, is the cart "deleted?"