- This topic has 8 replies, 4 voices, and was last updated 3 years, 3 months ago by
Team MultiVendorX.
-
AuthorPosts
-
-
December 1, 2022 at 2:15 AM #147123
MaxenceTP
ParticipantHello,
Is it possible to add a condition, if the current user has a specific database ID, then he can view and edit all the products of the store ? Directly from the dashboard, without wp-admin.
Thank you
-
December 1, 2022 at 3:22 PM #147204
NerdySupportExpert Moumita
Keymaster@maxence, as per our default flow we display the products of that vendor only.
Now the flow you want to achieve requires a good amount of custom code. Becasue it requires changing our coding logic and applying a new one.
-
December 1, 2022 at 5:24 PM #147222
MaxenceTP
ParticipantThere is no filter for the products id to show in the dashboard ?
Or is it possible to do that on the wp-admin ? Without giving the admin role -
December 2, 2022 at 1:09 AM #147245
NerdySupportExpert Moumita
Keymaster@MaxenceTP, let our developer look into this.
Kindly provide them some time. -
December 2, 2022 at 1:52 AM #147253
MaxenceTP
ParticipantThank you 🙂
-
December 2, 2022 at 4:22 PM #147286
MVX Support Ninja
KeymasterHi,
As per your requirement to show all product of the site in a vendor dashboard, you have to change our default flow. For this kindly check our https://github.com/multivendorx/MultiVendorX/blob/main/classes/class-mvx-ajax.php line no – 994.You have to remove this action and then add your custom modification to show the all product.
Regards,
-
December 2, 2022 at 11:54 PM #147298
MaxenceTP
ParticipantIf I’m right, I can use the filter “mvx_get_vendor_product_list_query_args” and remove the “‘author'” ?
This will return all products right ?
-
December 5, 2022 at 4:30 PM #147355
MVX Support Ninja
KeymasterNo, you can not. Because we get products from vendor like – $products_array = $vendor->get_products($args);
so you have to change the entire flow.
Regards,
-
February 9, 2023 at 2:53 PM #180104
Team MultiVendorX
KeymasterWe haven’t heard back from you, so we presume this issue has been fixed.
So we are closing this one.
If you need any further help, do open another thread.
-
-
AuthorPosts
- The topic ‘Vendor that can edit all products’ is closed to new replies.






