diff --git a/CHANGELOG.md b/CHANGELOG.md index 4634ea2..4d797c0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## v3.4.3 +* Добавлена валидация данных для подключения к CRM +* Исправлен пропуск товаров корневой категории при генерации ICML + ## v3.4.2 * Переработан механизм постраничной обработки истории изменений на использование sinceId вместо page diff --git a/VERSION b/VERSION index 4d9d11c..6cb9d3d 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.4.2 +3.4.3 diff --git a/retailcrm/lib/RetailcrmCatalog.php b/retailcrm/lib/RetailcrmCatalog.php index 63f8820..6acba1f 100644 --- a/retailcrm/lib/RetailcrmCatalog.php +++ b/retailcrm/lib/RetailcrmCatalog.php @@ -115,7 +115,6 @@ class RetailcrmCatalog $offersCount = 0; $id_lang = $this->default_lang; - $homeCategory = $this->home_category; $inactiveCategories = []; $categoriesIds = []; @@ -149,11 +148,7 @@ class RetailcrmCatalog $currentProductCategories = Product::getProductCategories($product['id_product']); $categoriesLeft = array_filter( $currentProductCategories, - function ($val) use ($inactiveCategories, $categoriesIds, $homeCategory) { - if ($val == $homeCategory) { - return false; - } - + function ($val) use ($inactiveCategories, $categoriesIds) { if (in_array($val, $inactiveCategories)) { return false; } diff --git a/retailcrm/retailcrm.php b/retailcrm/retailcrm.php index 1672bb3..dcb2a7c 100644 --- a/retailcrm/retailcrm.php +++ b/retailcrm/retailcrm.php @@ -148,7 +148,7 @@ class RetailCRM extends Module { $this->name = 'retailcrm'; $this->tab = 'export'; - $this->version = '3.4.2'; + $this->version = '3.4.3'; $this->author = 'DIGITAL RETAIL TECHNOLOGIES SL'; $this->displayName = $this->l('Simla.com'); $this->description = $this->l('Integration module for Simla.com');