Vendor that can edit all products

MultivendorX

Resolved
Viewing 8 reply threads
  • Author
    Posts
    • #147123
      MaxenceTP
      Participant

      Hello,

      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

    • #147204

      @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.

    • #147222
      MaxenceTP
      Participant

      There 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

    • #147245

      @MaxenceTP, let our developer look into this.
      Kindly provide them some time.

    • #147253
      MaxenceTP
      Participant

      Thank you 🙂

    • #147286

      Hi,
      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,

    • #147298
      MaxenceTP
      Participant

      If 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 ?

    • #147355

      No, 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,

    • #180104
      WCMp Admin
      Keymaster

      We 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.

Viewing 8 reply threads

The topic ‘Vendor that can edit all products’ is closed to new replies.