In case if goods must appear at third level of categories (and deeper)
it will be impossible to see goods (if they are exist).
For example, categories like this (uppercase) and goods like this (lowercase)
- ASUS [good, that will be shown 1, good, that will be shown 2]
ACER [good, that will be shown 3, good, that will be shown 4]
When you are at frontend, at "Catalog/list" route, if you click by "COMPUTERS" category link,
All this goods (in parentheses) will not appear at the list by right side.
because this part of code (function getCategoryIds) will not (and never) executed:
if (isset($categories[$categoryId]['items'])) {`
foreach ($categories[$categoryId]['items'] as $subCategoryId => $subCategory)
$this->getCategoryIds($categories, $subCategoryId, $categoryIds);
}
But, goods of first and second level of categories (in square brackets),
will be shown, because of this part of code:
In case if goods must appear at third level of categories (and deeper) it will be impossible to see goods (if they are exist). For example, categories like this (uppercase) and goods like this (lowercase)
When you are at frontend, at "Catalog/list" route, if you click by "COMPUTERS" category link, All this goods (in parentheses) will not appear at the list by right side. because this part of code (function getCategoryIds) will not (and never) executed:
if (isset($categories[$categoryId]['items'])) {` foreach ($categories[$categoryId]['items'] as $subCategoryId => $subCategory) $this->getCategoryIds($categories, $subCategoryId, $categoryIds); }
But, goods of first and second level of categories (in square brackets), will be shown, because of this part of code:
The problem is: Recursion is not executed. What is "items"?, its look like not defined (actually, values by dimension [items])