Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Order process: #108

Closed
9 tasks done
Tracked by #106
cjdomacena opened this issue Dec 2, 2021 · 0 comments · Fixed by #112, #113, #115, #119 or #120
Closed
9 tasks done
Tracked by #106

Order process: #108

cjdomacena opened this issue Dec 2, 2021 · 0 comments · Fixed by #112, #113, #115, #119 or #120
Assignees
Projects
Milestone

Comments

@cjdomacena
Copy link
Owner

cjdomacena commented Dec 2, 2021

  • Calculate Cart Items
  • Verify the current product price against the Products table
    - Since our Cart is table based it can be long lived so if a user added a Product at a sale and they attempt to purchase afterwards, it should pull the true Product cost
  • Verify desired product and desired quantity are still available in the Products table
  • Make an entry into the Orders table
  • Get last Order ID from Orders table
  • Copy the cart details into the OrderItems tables with the Order ID from the previous step
  • Update the Products table Stock for each item to deduct the Ordered Quantity
  • Clear out the user’s cart after successful order
  • Redirect user to Order Confirmation Page
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment