Commit dd6f25fb authored by Reinhold Kainhofer's avatar Reinhold Kainhofer

Add support for YITH WooCommerce Multi Vendors

parent 2c3cfea0
......@@ -262,6 +262,15 @@ class OpenToolsOrdernumbers extends OpenToolsOrdernumbersBasic {
$vendors[] = $vendor->ID;
}
}
// "YITH WooCommerce Multi Vendor" support (vendors stored in its own taxonomy)
if (function_exists("yith_get_vendor")) {
$vendor = yith_get_vendor($p->id, 'product');
if ($vendor->is_valid()) {
$vendors[] = $vendor->slug;
$vendors[] = $vendor->term_id;
}
}
// END THIRD-PARTY SUPPORT
}
$reps["[skus]"] = array_keys($skus);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment