From feaeca458f0ebc36e3b44b41c33cbd00bc30f7d2 Mon Sep 17 00:00:00 2001 From: Vlad <48670792+Mozgito@users.noreply.github.com> Date: Mon, 5 Sep 2022 12:58:12 +0300 Subject: [PATCH] Fix customer create externalId (#251) --- CHANGELOG.md | 3 +++ VERSION | 2 +- src/upload/catalog/model/extension/retailcrm/order.php | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 29403ae..cfb8217 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## v4.1.8 +* Fixed customer externalId when creating a customer and sending it to RetailCRM + ## v4.1.7 * Fixed notices in ICML generation and while setting delivery type * Fixed incorrect data check before setting payment data diff --git a/VERSION b/VERSION index 9edf2a4..a7c00da 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -4.1.7 +4.1.8 diff --git a/src/upload/catalog/model/extension/retailcrm/order.php b/src/upload/catalog/model/extension/retailcrm/order.php index f69e8ba..b91c596 100644 --- a/src/upload/catalog/model/extension/retailcrm/order.php +++ b/src/upload/catalog/model/extension/retailcrm/order.php @@ -420,6 +420,7 @@ class ModelExtensionRetailcrmOrder extends Model { 'lastName' => $data['lastname'], 'email' => $data['email'], 'createdAt' => $data['date_added'], + 'externalId' => $data['customer_id'], 'address' => array( 'countryIso' => $data['payment_iso_code_2'], 'index' => $data['payment_postcode'],