diff --git a/catalog/.catalog_links.menu_ext.php b/catalog/.catalog_links.menu_ext.php index 5657e2f..12248e8 100644 --- a/catalog/.catalog_links.menu_ext.php +++ b/catalog/.catalog_links.menu_ext.php @@ -38,14 +38,5 @@ if(CModule::IncludeModule('iblock')) $GLOBALS["CACHE_MANAGER"]->RegisterTag("iblock_id_new"); } - -// foreach ($aMenuLinksExt as &$menuItem) { - - // if (isset($menuItem[1])) { - // $menuItem[1] = preg_replace('#^/catalog/#', '/', $menuItem[1]); - // } -// } -// unset($menuItem); - $aMenuLinks = array_merge($aMenuLinks, $aMenuLinksExt); ?> \ No newline at end of file diff --git a/local/templates/EraSeptik/components/bitrix/menu/catalog_menu/result_modifier.php b/local/templates/EraSeptik/components/bitrix/menu/catalog_menu/result_modifier.php index 1577c7e..f703c6e 100644 --- a/local/templates/EraSeptik/components/bitrix/menu/catalog_menu/result_modifier.php +++ b/local/templates/EraSeptik/components/bitrix/menu/catalog_menu/result_modifier.php @@ -34,14 +34,14 @@ function catalogMenuStructure ($arr){ endforeach; // Оставляем только "Все товары" и категории с подкатегориями - $filteredArray = [$resultArray[0]]; // Оставляем "Все товары" - for ($j = 1; $j < count($resultArray); $j++) { - if (!empty($resultArray[$j]['SUBCATEGORIES'])) { - $filteredArray[] = $resultArray[$j]; - } - } + // $filteredArray = [$resultArray[0]]; // Оставляем "Все товары" + // for ($j = 1; $j < count($resultArray); $j++) { + // if (!empty($resultArray[$j]['SUBCATEGORIES'])) { + // $filteredArray[] = $resultArray[$j]; + // } + // } - return $filteredArray; + return $resultArray; } $arSectionsInfo = array();