mirror of
https://github.com/retailcrm/prestashop-module.git
synced 2025-04-11 12:50:55 +00:00
Improved work with the history of CRM changes for orders
This commit is contained in:
parent
9b6d5a5700
commit
49f687f6ff
3 changed files with 402 additions and 464 deletions
|
@ -109,9 +109,8 @@ class RetailcrmCustomerBuilder extends RetailcrmAbstractBuilder implements Retai
|
|||
->setDataCrm($this->dataCrm['address'])
|
||||
->setFirstName($this->arrayValue('firstName'))
|
||||
->setLastName($this->arrayValue('lastName'))
|
||||
->setPhone( isset($this->dataCrm['phones'][0]['number'])
|
||||
&& !empty($this->dataCrm['phones'][0]['number'])
|
||||
? $this->dataCrm['phones'][0]['number'] : '')
|
||||
->setPhone(isset($this->dataCrm['phones'][0]['number']) && !empty($this->dataCrm['phones'][0]['number'])
|
||||
? $this->dataCrm['phones'][0]['number'] : '')
|
||||
->build();
|
||||
|
||||
$this->customerAddress = $this->addressBuilder->getData();
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -818,7 +818,7 @@ class RetailCRM extends Module
|
|||
|
||||
$externalId = false;
|
||||
|
||||
if (empty($params['cart'])) {
|
||||
if (empty($params['cart']) || empty((int) $params['cart']->id)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue