Open kimberly-bird opened 5 years ago
Question Can you have multiple open orders? Answer No, 1 open order at a time
Assuming the customer views their "open order" by clicking either a "shopping cart" tab in the navbar or a "orders" tab. When the user clicks the Complete Order button they will be brought to the payment_type.html template. This template will most likely have a dropdown selection of the customers previously saved payment types AND an affordance to add a new payment type (this involves a separate add_payment.html template where they would fill out a form and add the payment type). After adding the payment type, it will also populate into the dropdown selections for payment types.
After selecting the payment type and clicking Done , the payment type will be added to the order and the user will be presented with a thank_you.html template.
Models/tables involved: ALL OF THEM
--from open order page AND user profile page--
'Payment Type' View/Template -existing payment types -form to add new payment type (ticket #9 adds delete button)
'Confirmation' View/Template (where is the user taken from this screen? Back to order and/or profile?)
Given the user is authenticated And the user is viewing their open order When the user clicks the Complete Order button Then the user should be presented with a view that allows them to select a payment type for the order
Given the user selects a payment option When the user clicks the Done button
Then the payment type must be added to the order And the user will be presented with a confirmation/thank you screen