mirror of
https://github.com/retailcrm/opencart-module.git
synced 2024-11-25 22:56:07 +03:00
Merge pull request #79 from iyzoer/master
This commit is contained in:
commit
003a2e5797
@ -1,3 +1,6 @@
|
|||||||
|
## v.3.0.3
|
||||||
|
* Исправлена ошибка с изменением пароля пользователя
|
||||||
|
|
||||||
## v.3.0.2
|
## v.3.0.2
|
||||||
* Улучшена механика выгрузки изменений из RetailCRM на сайт
|
* Улучшена механика выгрузки изменений из RetailCRM на сайт
|
||||||
* Улучшена механика выборки типов доставки на сайте
|
* Улучшена механика выборки типов доставки на сайте
|
||||||
|
@ -761,6 +761,7 @@ class ModelExtensionRetailcrmHistoryV45 extends ModelExtensionRetailcrmHistory
|
|||||||
foreach ($customers as $customer) {
|
foreach ($customers as $customer) {
|
||||||
$customer_id = $customer['externalId'];
|
$customer_id = $customer['externalId'];
|
||||||
$customerData = $this->model_customer_customer->getCustomer($customer_id);
|
$customerData = $this->model_customer_customer->getCustomer($customer_id);
|
||||||
|
$customerData['password'] = false;
|
||||||
|
|
||||||
$customerData['firstname'] = $customer['firstName'];
|
$customerData['firstname'] = $customer['firstName'];
|
||||||
$customerData['lastname'] = isset($customer['lastName']) ? $customer['lastName'] : '';
|
$customerData['lastname'] = isset($customer['lastName']) ? $customer['lastName'] : '';
|
||||||
@ -781,7 +782,7 @@ class ModelExtensionRetailcrmHistoryV45 extends ModelExtensionRetailcrmHistory
|
|||||||
$customerAddress['lastname'] = isset($customer['lastName']) ? $customer['lastName'] : '';
|
$customerAddress['lastname'] = isset($customer['lastName']) ? $customer['lastName'] : '';
|
||||||
$customerAddress['address_1'] = $customer['address']['text'];
|
$customerAddress['address_1'] = $customer['address']['text'];
|
||||||
$customerAddress['city'] = $customer['address']['city'];
|
$customerAddress['city'] = $customer['address']['city'];
|
||||||
$customerAddress['postcode'] = $customer['address']['index'] ? $customer['address']['index'] : '';
|
$customerAddress['postcode'] = isset($customer['address']['index']) ? $customer['address']['index'] : '';
|
||||||
|
|
||||||
if (isset($customerCountry)) {
|
if (isset($customerCountry)) {
|
||||||
$customerAddress['country_id'] = $customerCountry['country_id'];
|
$customerAddress['country_id'] = $customerCountry['country_id'];
|
||||||
|
Loading…
Reference in New Issue
Block a user