From dca2b67a5b73f308a6b43af20c6845a507610e9c Mon Sep 17 00:00:00 2001 From: iyzoer Date: Mon, 5 Jun 2017 12:49:29 +0300 Subject: [PATCH] fix country and region in delivery address on update order --- catalog/model/extension/retailcrm/order.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/catalog/model/extension/retailcrm/order.php b/catalog/model/extension/retailcrm/order.php index 09347f5..5354944 100644 --- a/catalog/model/extension/retailcrm/order.php +++ b/catalog/model/extension/retailcrm/order.php @@ -227,8 +227,8 @@ class ModelExtensionRetailcrmOrder extends Model { 'address' => array( 'index' => $order_data['shipping_postcode'], 'city' => $order_data['shipping_city'], - 'country' => $order_data['shipping_country_id'], - 'region' => $order_data['shipping_zone_id'], + 'countryIso' => $order_data['shipping_iso_code_2'], + 'region' => $order_data['shipping_zone'], 'text' => implode(', ', array( $order_data['shipping_postcode'], $country,