change order status to processing when process is assigned

This commit is contained in:
Bilal Catic
2018-11-04 23:59:54 +01:00
parent 9e599617c4
commit 75a574279b
2 changed files with 6 additions and 1 deletions

View File

@@ -74,6 +74,11 @@ class Wiaas_Delivery_Process {
update_post_meta($order_id, 'wiaas_delivery_process_id', $process_id);
update_post_meta($order_id, 'wiaas_delivery_process_entry_id', $process_entry_id);
$order = wc_get_order($order_id);
$order->set_status('processing', 'Started order delivery process.', true);
$order->save();
return $process_entry_id;
}
return false;