Fix customer create externalId (#251)

This commit is contained in:
Vlad 2022-09-05 12:58:12 +03:00 committed by GitHub
parent b22941cc3e
commit feaeca458f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,6 @@
## v4.1.8
* Fixed customer externalId when creating a customer and sending it to RetailCRM
## v4.1.7 ## v4.1.7
* Fixed notices in ICML generation and while setting delivery type * Fixed notices in ICML generation and while setting delivery type
* Fixed incorrect data check before setting payment data * Fixed incorrect data check before setting payment data

View File

@ -1 +1 @@
4.1.7 4.1.8

View File

@ -420,6 +420,7 @@ class ModelExtensionRetailcrmOrder extends Model {
'lastName' => $data['lastname'], 'lastName' => $data['lastname'],
'email' => $data['email'], 'email' => $data['email'],
'createdAt' => $data['date_added'], 'createdAt' => $data['date_added'],
'externalId' => $data['customer_id'],
'address' => array( 'address' => array(
'countryIso' => $data['payment_iso_code_2'], 'countryIso' => $data['payment_iso_code_2'],
'index' => $data['payment_postcode'], 'index' => $data['payment_postcode'],