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'],