From 6eecca5f93a5c1dce358b1384e986e293b0c5dc2 Mon Sep 17 00:00:00 2001 From: Akolzin Dmitry Date: Fri, 10 Nov 2017 17:23:12 +0300 Subject: [PATCH] Status in orders upload (#62) --- admin/model/retailcrm/order.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/admin/model/retailcrm/order.php b/admin/model/retailcrm/order.php index d347ac4..126ff46 100644 --- a/admin/model/retailcrm/order.php +++ b/admin/model/retailcrm/order.php @@ -124,6 +124,10 @@ class ModelRetailcrmOrder extends Model { ); } + if (isset($order_data['order_status_id']) && $order_data['order_status_id'] > 0) { + $order['status'] = $this->settings['retailcrm_status'][$order_data['order_status_id']]; + } + return $order; }