Handle process visualization and going from one step to another

This commit is contained in:
Almira Krdzic
2018-11-01 10:43:15 +01:00
parent 308c836460
commit 3d16d5027b
19 changed files with 448 additions and 1786 deletions

View File

@@ -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;
}
}