Fixed skipping home category products in ICML

This commit is contained in:
gleemand 2022-06-17 11:29:53 +03:00 committed by GitHub
parent 13e0df6cf3
commit dde673bf3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 8 deletions

View File

@ -1,3 +1,7 @@
## v3.4.3
* Добавлена валидация данных для подключения к CRM
* Исправлен пропуск товаров корневой категории при генерации ICML
## v3.4.2
* Переработан механизм постраничной обработки истории изменений на использование sinceId вместо page

View File

@ -1 +1 @@
3.4.2
3.4.3

View File

@ -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;
}

View File

@ -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');