April 2020
Intermediate to advanced
716 pages
18h 55m
English
The ShopOrders component will be the view where sellers will be able to see the list of orders that have been received for a given shop. In this view, each order will only show the purchased products that are relevant to the shop and allow the seller to change the status of the ordered product with a dropdown of possible status values, as shown in the following screenshot:

To render this view at a frontend route, we will update MainRouter with a PrivateRoute in order to load the ShopOrders component at the /seller/orders/:shop/:shopId route, as shown in the following code.
mern-marketplace/client/MainRouter.js:
<PrivateRoute ...
Read now
Unlock full access