From 356f22f708f2806660dc8bc2bad18ee0eecee356 Mon Sep 17 00:00:00 2001 From: Andrei Date: Mon, 23 Jun 2025 22:31:32 +0300 Subject: [PATCH] =?UTF-8?q?Anton=20|=20fix:=20=D0=B2=D1=8B=D0=B2=D0=B5?= =?UTF-8?q?=D0=BB=20=D0=B2=D1=81=D0=B5=20=D0=BA=D0=B0=D1=82=D0=B5=D0=B3?= =?UTF-8?q?=D0=BE=D1=80=D0=B8=D0=B8=20=D0=B2=20=D0=B3=D0=BB=D0=B0=D0=B2?= =?UTF-8?q?=D0=BD=D0=BE=D0=BC=20=D0=BC=D0=B5=D0=BD=D1=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- catalog/.catalog_links.menu_ext.php | 9 --------- .../bitrix/menu/catalog_menu/result_modifier.php | 14 +++++++------- 2 files changed, 7 insertions(+), 16 deletions(-) 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();