Claim your freedom to choose the perfect partner for your multi-vendor journey.

FREEDOM25

Celebrate the festive season by giving your marketplace a powerful lift!

FESTIVE20

5.0.0
Multi-store. Franchise. Facilitator. AI tools.
Everything your marketplace needs - now in one platform.
Power your marketplace dreams with unbeatable Black Friday deals!

MVXBLACK30

Supercharge your marketplace vision with unstoppable Cyber Monday deals!

MVXCYBER30

Holiday cheer, bigger savings
Take 25% off-because your marketplace deserves a gift too.

happyholiday

Only show parent orders for vendor in Vendor Dashboard and/or disable suborders

Resolved
Viewing 9 reply threads
  • Author
    Posts
    • #240478
      dennis
      Participant

      Hey 🙂

      1) Is there a possibility to update the calls for orders in the vendor dashboard order management, so it only returns the parent orders for the given vendor?

      2) Else – is there a possibility to totally turn off suborders? I only use the main orders for my vendors, since my customers is not allowed to combine products from multiple vendors anyway.

      Best Regards,
      Dennis

    • #240492
      Anushka Sinha
      Moderator

      Hi @Dennis
      Thank you for reaching out to us.
      I would like to inform you that suborders are an integral part of the MultivendorX and cannot be completely turned off. Without suborders, a vendor would not be able to manage their orders effectively.

      However, you can sync the parent order and suborder statuses. To do this, you can refer to this code snippet: https://multivendorx.com/docs/code-snippet/parent-order-and-sub-order-status-sync/

      Additionally, if you’d like to hide suborders from the customer’s “My Account” page, you can use the following code:
      https://multivendorx.com/docs/code-snippet/disable-the-suborder-for-wordpress-dasboard/

      Now coming to the first point, in order to assist you more effectively with this flow, could you please provide more details about what you’re looking for? This will help us better understand your needs and provide a more accurate solution.

    • #240498
      dennis
      Participant

      Well, I need them to just see the parent orders.
      I dont use the child orders, since I dont calculate commissions etc. inside MultiVendorX – I have just made my own functions to handle the vendors possibilities of changing status etc.

      So – what I need is to make sure they only see the parent orders in their orders table.

      I can edit the mvx-ajax call, so the WP_Query has “post_parent=0”, but that will not work after updates etc., so that is not a good way to go.

      I can also make my own orders list view file, but that would take much longer than just being able to filter child orders / sub-orders).

    • #240499
      Anushka Sinha
      Moderator

      @dennis, The modification you’ve made has directly altered the core plugin code.

      To implement your changes more safely and efficiently for the Vendor Dashboard, I recommend using the following filter instead:
      mvx_datatable_get_vendor_all_orders

    • #240501
      dennis
      Participant

      Hey 🙂

      And how can I implement that filter to add an argument in the wp_query like post_parent => 0?

    • #240502

      Thank you for getting back to us. I’ve shared your query with the development team, and I’ll keep you updated as soon as I receive their response.

      Thanks again for your cooperation.

    • #240507

      @Dennis, thank you for your understanding.

      Regarding your query, the shared filter already supports passing arguments through WP_Query, so you can implement your custom logic using it as needed.

      If you have any further questions, feel free to reach out.

    • #240511
      dennis
      Participant

      Can you help me on how I can do that? I simply cant see how I can add parameters to the ajax call.

    • #240513

      @Dennis, Thank you for reaching out. At the moment, we don’t have a ready-made code snippet available for your specific requirement. However, you can achieve the desired outcome by implementing your own custom code using the shared filter.

      If you need any further assistance or have additional questions, please don’t hesitate to let us know — we’re always happy to help.

    • #248109
      Anushka Sinha
      Moderator

      Hi there !

      We haven’t heard back from you in a while, so we assume your query has been resolved. We’ll be closing this thread now.

      If you need any assistance in the future or encounter any issues, feel free to create a new support thread. We’re happy to help!

Viewing 9 reply threads
  • The topic ‘Only show parent orders for vendor in Vendor Dashboard and/or disable suborders’ is closed to new replies.
Shopping Cart
Scroll to Top