Handle assigment for order delivery flow
This commit is contained in:
@@ -1,26 +1,5 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Retrieve order suppliers
|
||||
*
|
||||
* @param int|WC_Order $order
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
function wiaas_get_order_suppliers($order) {
|
||||
|
||||
if (is_numeric($order)) {
|
||||
|
||||
$order = wc_get_order($order);
|
||||
}
|
||||
|
||||
$items = $order->get_items();
|
||||
|
||||
$suppliers = wiaas_get_suppliers();
|
||||
|
||||
return $suppliers;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve standard bundles from order
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user