|
|
@@ -64,13 +64,11 @@ class Import_Manager {
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
- $order_id = wc_get_order_id_by_order_number($row['order_no']);
|
|
|
- if (!$order_id) {
|
|
|
+ $order = wc_get_order($row['order_no']);
|
|
|
+ if (!$order) {
|
|
|
$errors[] = sprintf(__('Order %s not found.', 'studiou-wc-ord-print-statuses'), $row['order_no']);
|
|
|
continue;
|
|
|
}
|
|
|
-
|
|
|
- $order = wc_get_order($order_id);
|
|
|
$order->update_status('wc-completed');
|
|
|
$order->update_meta_data('external_ref_ord_delivered', current_time('mysql'));
|
|
|
$order->save();
|