mirror of
https://github.com/retailcrm/prestashop-module.git
synced 2025-03-01 19:03:14 +03:00
v2.2.9
This commit is contained in:
parent
5920424ad3
commit
4dfc7b8d1a
@ -1,3 +1,6 @@
|
||||
## v2.2.9
|
||||
* Добавлена выгрузка габаритов в специальный тег dimensions
|
||||
|
||||
## v2.2.8
|
||||
* Добавлена выгрузка картинок категорий товаров в ICML
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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')
|
||||
);
|
||||
|
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user