Closed knrodriguez closed 3 years ago
[x] express route to update isOrdered field in order table to true
[x] create order details instances from cart if they dont exist in DB (check for nested create in sequelize)
[x] Prompt to sign in or continue as guest
[x] If GUEST, fill out form asking for email address, shipping address, payment information
[x] If LOGGED IN, confirm all information associated to user
[x] When 'Submit' is clicked
-update quantity of products in products table.
-create new row in order table as new shopping cart
Backend
[x] express route to update isOrdered field in order table to true
[x] create order details instances from cart if they dont exist in DB (check for nested create in sequelize)
Frontend
[x] Prompt to sign in or continue as guest
[x] If GUEST, fill out form asking for email address, shipping address, payment information
[x] If LOGGED IN, confirm all information associated to user
[x] When 'Submit' is clicked
-update quantity of products in products table.
-create new row in order table as new shopping cart