-
Notifications
You must be signed in to change notification settings - Fork 5
(Online shop) seller administration, sale-items, order-review, order checkout & order status #380
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
base: dev
Are you sure you want to change the base?
Conversation
@@ -221,57 +246,60 @@ export default function BuyFromSellerForm({ params }: { params: { id: string } } | |||
</div> | |||
|
|||
{/* Online Shopping */} | |||
{isOnlineShoppingEnabled && ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reason why the toggle is removed..? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! 👍
src/services/orderApi.ts
Outdated
// Import Axios client and logger | ||
import axiosClient from "@/config/client"; | ||
import logger from '../../logger.config.mjs'; | ||
import { PaymentDataType } from "@/constants/types"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This import is not being used.
import { PaymentDataType } from "@/constants/types"; | ||
|
||
// Create or Update an Order | ||
export const createOrUpdateOrder = async (orderData: any) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not a big fan of consolidating create and update logic into a single endpoint. It would be cleaner and more maintainable in the long run to distinguish these operations using separate POST
and PUT
endpoints. Definitely a refactoring opportunity for later.
…tralized leverage.
Hi @adisa39 - great job overall! |
The item checkout workflow is now complete as user can pick items from seller, checkout orders, make u2u payment and review ordered items, also Sellers can check buyers' orders, mark orders/items as fulfilled or refunded.