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
|
## v3.4.2
|
||||||
* Переработан механизм постраничной обработки истории изменений на использование sinceId вместо page
|
* Переработан механизм постраничной обработки истории изменений на использование sinceId вместо page
|
||||||
|
|
||||||
|
@ -115,7 +115,6 @@ class RetailcrmCatalog
|
|||||||
$offersCount = 0;
|
$offersCount = 0;
|
||||||
|
|
||||||
$id_lang = $this->default_lang;
|
$id_lang = $this->default_lang;
|
||||||
$homeCategory = $this->home_category;
|
|
||||||
|
|
||||||
$inactiveCategories = [];
|
$inactiveCategories = [];
|
||||||
$categoriesIds = [];
|
$categoriesIds = [];
|
||||||
@ -149,11 +148,7 @@ class RetailcrmCatalog
|
|||||||
$currentProductCategories = Product::getProductCategories($product['id_product']);
|
$currentProductCategories = Product::getProductCategories($product['id_product']);
|
||||||
$categoriesLeft = array_filter(
|
$categoriesLeft = array_filter(
|
||||||
$currentProductCategories,
|
$currentProductCategories,
|
||||||
function ($val) use ($inactiveCategories, $categoriesIds, $homeCategory) {
|
function ($val) use ($inactiveCategories, $categoriesIds) {
|
||||||
if ($val == $homeCategory) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (in_array($val, $inactiveCategories)) {
|
if (in_array($val, $inactiveCategories)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -148,7 +148,7 @@ class RetailCRM extends Module
|
|||||||
{
|
{
|
||||||
$this->name = 'retailcrm';
|
$this->name = 'retailcrm';
|
||||||
$this->tab = 'export';
|
$this->tab = 'export';
|
||||||
$this->version = '3.4.2';
|
$this->version = '3.4.3';
|
||||||
$this->author = 'DIGITAL RETAIL TECHNOLOGIES SL';
|
$this->author = 'DIGITAL RETAIL TECHNOLOGIES SL';
|
||||||
$this->displayName = $this->l('Simla.com');
|
$this->displayName = $this->l('Simla.com');
|
||||||
$this->description = $this->l('Integration module for Simla.com');
|
$this->description = $this->l('Integration module for Simla.com');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user