Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › How to get products by vendor id?
- This topic has 5 replies, 2 voices, and was last updated 5 years, 5 months ago by Sayan Naskar.
- AuthorPosts
- May 18, 2019 at 8:10 pm #62871AnulGuest
Is there any API to fetch products by vendor id?
- May 20, 2019 at 3:59 am #62962Sayan NaskarMember
Hello,
When you use vendors credentials to authenticate and call the products api route with that authentication key. You will get products of that vendor.
Are you looking to achieve anything else?
Thank you. - May 20, 2019 at 7:44 am #62999AnulGuest
Hello,
I know that by i want to get with vendor id. I have list all my vendors, and i want when choosing one of them to fetch his products. - May 21, 2019 at 6:31 am #63141Sayan NaskarMember
Hello,
It is now not supported in the products api. But we will implement it in the future versionsThank You.
- May 23, 2019 at 2:25 pm #63512AnulGuest
When the future version coming?
- June 2, 2019 at 5:26 pm #65552Sayan NaskarMember
Hello,
Use the URL format <Site_Url>/wp-json/wcfmmp/v1/products/?id=858 ( ie <Site_Url>/wp-json/wcfmmp/v1/products/?id=<Vendor_id> ) while logged in as admin to get products of a specific vendor.Thank You.
- AuthorPosts
- The topic ‘How to get products by vendor id?’ is closed to new replies.