Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › Order section with all orders form single vendor
- This topic has 3 replies, 3 voices, and was last updated 5 years, 7 months ago by Sayan Naskar.
- AuthorPosts
- May 9, 2019 at 1:57 pm #61380AltinGuest
https://docs.wclovers.com/wcfm-app/
5.2.Orders #
Order section will show all orders for their products and most important details.
They also know what will be their commission for the order.Is that any API that I can use in order to get this result, because this one GET <site_base_url>/wp-json/wcfmmp/v1/orders/
This API helps you to view all the orders and need a lot of parsing in order to get the response, and for sure, for a lot of data it’s not
a solution. - May 10, 2019 at 5:37 pm #61730WCFM ForumMember
HI,
GET
/wp-json/wcfmmp/v1/orders/ – This returns all vendor orders. What additional data you are looking for.
Thank You
–
- May 13, 2019 at 7:49 am #62038AltinGuest
I was looking for a solution in order to get only the orders corresponding to one specific vendor, maybe passing the id of the user? Because returning only all orders by all vendors will need a log of parsing, and when the website will have more users and vendors will take longer and longer to find the orders only for one vendor
- May 16, 2019 at 9:48 am #62452Sayan NaskarMember
Hello,
As I understand you are looking to get orders of specific vendor. For that you need to make the api request with the access token or credentials of the specific vendor. Our app works in that way. When the vendor logs in the app and make the api request for the orders with his access token only the orders specific to the vendor is being fetched.
And on the other hand if you are fetching the orders with admin credentials all the orders of all the vendors are being fetched.
Let me know if you need further details. We can provide you an example if you want.Thank you.
- AuthorPosts
- The topic ‘Order section with all orders form single vendor’ is closed to new replies.