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