- Support forum for the Maximum Products per User for WooCommerce.
- This topic has 3 replies, 3 voices, and was last updated 1 year, 3 months ago by Philipp.
- August 16, 2022 at 9:05 am #101032PhilippGuest
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.
PhilippAugust 16, 2022 at 10:08 am #101033MoshtafizurModeratorPlugin Support
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.
MoshtafizurAugust 16, 2022 at 7:40 pm #101034PabloModeratorPlugin Support
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.August 17, 2022 at 6:37 am #101035PhilippGuest
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.
- You must be logged in to reply to this topic.