Is it compitable with Yith Multi-Vendor plugin?

Top WooCommerce & WordPress Plugins Forums Maximum Products per User for WooCommerce Is it compitable with Yith Multi-Vendor plugin?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #101032
    Philipp
    Guest

    Hi,

    I’m using your plugin for an internal shop-system in our company and it is doing a great job there!

    As we start offering more and more products from different external service providers, we are now working an a major update of our shop – integrating the Yith Multi-Vendor-Plugin. Unfortunately, as the Yith-plugin creates suborders for each seperate vendor, your plugin counts every bought product twice (1x main order & 1x suborder).

    Do you have any suggestions how to solve this?

    I’ve already been thinking of simply multipliyng every limit by two but that would lead to confusing outputs on the frontend. So I would like to refrain from doing so.

    Best regards,

    Philipp

    #101033
    Moshtafizur
    Moderator
    Plugin Support

    Hello Philipp,

    Thanks for reaching out.

    I have passed your request to our development team. They will check the viability of this and will get back to you as soon as they can.

    Kind regards,
    Moshtafizur

    #101034
    Pablo
    Moderator
    Plugin Support

    Hi Philipp,

    Would it be possible to send us the YITH Multi-Vendor plugin? If that’s the case, please send it to [email protected], maybe using wetransfer.com or some other tool you like.

    We can take a look if it’s possible for example to ignore the suborders created by them. Maybe it would be enough to make it compatible with our plugin? Let me know if you have some other suggestions.

    #101035
    Philipp
    Guest

    Hi Pablo,

    thanks for your help. I’ve send you the plugin via mail.

    Meanwhile I took a deeper look into the order data: Here are some meta-keys that might be helpful:

    ‘_created_via’ -> Seems to return ‘checkout’ for main orders from frontend, ‘admin’ for main orders from backend and ‘yith_wcmv_vendor_suborder’ for suborders created by the plugin

    ‘has_sub_order’ -> Returns true (‘1’ to be exact) for both parent- and suborder if a suborder exists. Returns false (or no value at all to be exact) if no suborder exists.

    ‘vendor_id’ -> Returns (in my data) a three-digit-vendor-id like ‘259’ if order is a suborder. The vendor-id does not correspond to the user-id. Parent-orders don’t have a vendor-id.

    Most promising in my opinion would be to filter by ‘_created_via’ and ignore all orders created by the plugin.

    Best regards

    Philipp

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.