mirror of
https://github.com/retailcrm/prestashop-module.git
synced 2025-03-01 19:03:14 +03:00
Fixed skipping home category products in ICML
This commit is contained in:
parent
13e0df6cf3
commit
dde673bf3b
@ -1,3 +1,7 @@
|
||||
## v3.4.3
|
||||
* Добавлена валидация данных для подключения к CRM
|
||||
* Исправлен пропуск товаров корневой категории при генерации ICML
|
||||
|
||||
## v3.4.2
|
||||
* Переработан механизм постраничной обработки истории изменений на использование sinceId вместо page
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user