Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › How get Vendor status and how trigger to change this status in plugin
Tagged: vendor status
- December 29, 2019 at 3:17 am #99818lukas_smithParticipant
I would like check status vendor by user ID but i dont know how can i get all data with WCFM extra data.
I am using this
$wcfm_all_vendors = $WCFM->wcfm_vendor_support->wcfm_get_vendor_list( true, '', '', '' );
But this is only list of approved vendors. Is any function to search Vendor by user ID and see status ?
And after i will go on Approve vendors i have vendor details like vendor summary: Vendor Application
on bottom i have button to update and check status Radio button
approve with id = wcfm_vendor_approval_response_status_approve
reject with id = wcfm_vendor_approval_response_status_reject
Both input with name = wcfm_vendor_approval_response_status
and update button with id = wcfm_vendor_approval_response_button
How can i update vendor status to approve from plugin ?
I am trying to do :
1. get vendor by id
2. Check is active or not
3. if not – make activate
but i am stuck 🙁
- January 17, 2020 at 10:56 pm #102504Molay DasKeymaster
You have to navigate to store-manager->Vendors and then click on “Pending Store Vendors” button on the header area, you will get the vendor list with pending approval and then you can approve them whoever you want.
If you want to approve all vendors by default then you can skip the approval process by unchecking the “Required Approval” option under Settings->Vendor Registration.
- You must be logged in to reply to this topic.