Handle process visualization and going from one step to another
This commit is contained in:
@@ -71,8 +71,6 @@ class Wiaas_Order_Fields {
|
||||
return false;
|
||||
}
|
||||
|
||||
error_log(json_encode('here'));
|
||||
|
||||
$order = wc_get_order($order_id);
|
||||
|
||||
$bundle_item = $order->get_item($bundle_item_id);
|
||||
@@ -129,6 +127,15 @@ class Wiaas_Order_Fields {
|
||||
|
||||
break;
|
||||
|
||||
case 'wiaas_order_supplier':
|
||||
$suppliers = wiaas_get_order_suppliers($order);
|
||||
|
||||
$supplier_ids = array_keys($suppliers);
|
||||
|
||||
$supplier_id = $supplier_ids[0];
|
||||
|
||||
$entry[(string) $field->id] = 'wiaas_organization_order_' . $order_id . '|' . $supplier_id;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user