mirror of
https://github.com/retailcrm/prestashop-module.git
synced 2025-03-01 19:03:14 +03:00
Added default country when creating order and fixed ICML generation
This commit is contained in:
parent
1fe840d96f
commit
1568783e9f
@ -236,8 +236,11 @@ class RetailcrmCatalog
|
||||
|
||||
if (!$pictures) {
|
||||
$image = Image::getCover($product['id_product']);
|
||||
$picture = $this->protocol . $this->link->getImageLink($product['link_rewrite'], $image['id_image'], 'large_default');
|
||||
$pictures[] = $picture;
|
||||
|
||||
if (isset($image['id_image'])) {
|
||||
$picture = $this->protocol . $this->link->getImageLink($product['link_rewrite'], $image['id_image'], 'large_default');
|
||||
$pictures[] = $picture;
|
||||
}
|
||||
}
|
||||
|
||||
if ('1.3' == $this->version) {
|
||||
|
@ -180,6 +180,7 @@ class RetailcrmCustomerAddressBuilder extends RetailcrmAbstractBuilder implement
|
||||
{
|
||||
if (empty($this->customerAddress)) {
|
||||
$this->customerAddress = new Address();
|
||||
$this->setAddressField('id_country', Configuration::get('PS_COUNTRY_DEFAULT'));
|
||||
}
|
||||
|
||||
$this->customerAddress->id_customer = $this->idCustomer;
|
||||
@ -197,6 +198,7 @@ class RetailcrmCustomerAddressBuilder extends RetailcrmAbstractBuilder implement
|
||||
|
||||
if (array_key_exists('countryIso', $this->dataCrm)) {
|
||||
$countryIso = null;
|
||||
|
||||
if (Validate::isLanguageIsoCode($this->dataCrm['countryIso'])) {
|
||||
$countryIso = Country::getByIso($this->dataCrm['countryIso']);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user