Milestone: Realizing the Admin Order Page #29
Labels
backend
design
potential design changes, structural or layout-related
firebase
frontend
ideas wanted
Need ideas and inputs from others
new feature
proposing potential new features
node
react
urgent
Extra attention is needed
Milestone
Right now, the admin's order page is missing.
The main functionality of the admin's order page is to keep track of all of the user's current orders.
The idea is that once the user pays successful, we want to use the order (all of the item's the user has ordered, the user's username and email, when they have ordered, any comments they have regarding the products).
This is a pretty involved part of the project's new feature and should be addressed with high priority, since the feature is essential to the website's main functionality.
Check out the code in
src/components/stripe-button/stripe-button.jsx
.Essentially, if the Stripe backend detects the payment has been processed successfully (using the test credit card of course), the onToken method will be called, and inside the method, we alert a success message (which should be enhanced, check out issue #), and also call the
paymentSuccessCallback()
.The method
paymentSuccessCallback()
is defined insrc/pages/cart-checkout/cart-checkout.js
.This method retrieves the relevant product and user information, as well as storing the information into the MongoDB database.
What we want to do next is retrieving the same information from the database and displays it in the Admin checkout page
I think a more visual representation would be nice, where each user's order is listed out as a card item. So essentially, the entire page would be filled with card items laid out nicely. Like a blog card item here.
I am only laying out the general idea. What specifically needs to implemented and how to realize the implementation is of course much more complicated and open to discussion. We might need to (or definitely) change up how and what the data needs to be stored in the database, and adding CRUD operation on each user checkout item card as well.
I'm listing this as one of the project's milestones because there's a lot to implement.
Feel free to ask any clarifying questions here and contribute any ideas!
The text was updated successfully, but these errors were encountered: