This commit is contained in:
Sergey 2019-01-16 13:11:34 +03:00
parent 5920424ad3
commit 4dfc7b8d1a
5 changed files with 16 additions and 18 deletions

View File

@ -1,3 +1,6 @@
## v2.2.9
* Добавлена выгрузка габаритов в специальный тег dimensions
## v2.2.8
* Добавлена выгрузка картинок категорий товаров в ICML

View File

@ -1 +1 @@
2.2.8
2.2.9

View File

@ -99,18 +99,14 @@ class RetailcrmCatalog
$weight = null;
}
$width = round($product['width'], 2);
$height = round($product['height'], 2);
$depth = round($product['depth'], 2);
$width = round($product['width'], 3);
$height = round($product['height'], 3);
$depth = round($product['depth'], 3);
if (!empty($width) && !empty($height)) {
if (!empty($depth)) {
$size = implode('x', array($width, $height, $depth));
} else {
$size = implode('x', array($width, $height));
}
$dimensions = implode('/', array($width, $height, $depth));
} else {
$size = null;
$dimensions = null;
}
$productForCombination = new Product($product['id_product']);
@ -170,7 +166,7 @@ class RetailcrmCatalog
'vendor' => $vendor,
'article' => $article,
'weight' => $weight,
'size' => $size
'dimensions' => $dimensions
);
if (!empty($combinations)) {
@ -210,7 +206,7 @@ class RetailcrmCatalog
'vendor' => $vendor,
'article' => $article,
'weight' => $weight,
'size' => $size
'dimensions' => $dimensions
);
$items[] = $item;

View File

@ -24,14 +24,14 @@ class RetailcrmIcml
'picture',
'url',
'xmlId',
'productActivity'
'productActivity',
'dimensions'
);
$this->params = array(
'article' => 'Артикул',
'color' => 'Цвет',
'weight' => 'Вес',
'size' => 'Размер',
'tax' => 'Наценка'
);
}
@ -94,7 +94,6 @@ class RetailcrmIcml
private function addOffers($offers)
{
foreach ($offers as $offer) {
$e = $this->eOffers->appendChild(
$this->dd->createElement('offer')
);

View File

@ -3,7 +3,7 @@
* @author Retail Driver LCC
* @copyright RetailCRM
* @license GPL
* @version 2.2.6
* @version 2.2.9
* @link https://retailcrm.ru
*
*/
@ -38,7 +38,7 @@ class RetailCRM extends Module
{
$this->name = 'retailcrm';
$this->tab = 'export';
$this->version = '2.2.6';
$this->version = '2.2.9';
$this->author = 'Retail Driver LCC';
$this->displayName = $this->l('RetailCRM');
$this->description = $this->l('Integration module for RetailCRM');