From a2e24e45be18ccd6f7dfa843d0102a3d59af072d Mon Sep 17 00:00:00 2001 From: Andrei Date: Tue, 10 Jun 2025 16:08:27 +0300 Subject: [PATCH] =?UTF-8?q?Feat=20|=20=D0=92=D1=8B=D0=B2=D0=B5=D0=BB=20?= =?UTF-8?q?=D0=BA=D0=BE=D1=80=D1=80=D0=B5=D0=BA=D1=82=D0=BD=D1=8B=D0=B5=20?= =?UTF-8?q?title=20h1=20description=20=D1=82=D0=B0=D0=BA=20=D0=B6=D0=B5=20?= =?UTF-8?q?=D0=BD=D0=B0=D1=81=D1=82=D1=80=D0=BE=D0=B8=D0=BB=20=D0=A5=D0=9A?= =?UTF-8?q?=20=D0=B8=20=D0=B2=D1=8B=D0=B2=D0=BE=D0=B4=20=D1=81=D0=B5=D0=BE?= =?UTF-8?q?=20=D1=82=D0=B5=D0=BA=D1=81=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- catalog/index.php | 2 + .../catalog.section/.default/template.php | 2 +- .../bitrix/catalog/main/element.php | 2 +- .../bitrix/catalog/main/section_vertical.php | 56 ++++++++++++++++++- 4 files changed, 58 insertions(+), 4 deletions(-) diff --git a/catalog/index.php b/catalog/index.php index 964bcd1..f8b0296 100644 --- a/catalog/index.php +++ b/catalog/index.php @@ -199,6 +199,8 @@ $APPLICATION->SetTitle("Каталог"); "DETAIL_MAIN_BLOCK_PROPERTY_CODE" => array( ), "FILTER_NAME" => "", + "SECTION_ID" => $_REQUEST["SECTION_ID"], // или SECTION_CODE, если ЧПУ + "SECTION_CODE" => $_REQUEST["SECTION_CODE"], // если URL вида /category/phones/ "SEF_MODE" => "Y", "SEF_FOLDER" => "/", "SEF_URL_TEMPLATES" => array( diff --git a/local/templates/.default/components/bitrix/catalog.section/.default/template.php b/local/templates/.default/components/bitrix/catalog.section/.default/template.php index cbbaeac..3dfafb2 100644 --- a/local/templates/.default/components/bitrix/catalog.section/.default/template.php +++ b/local/templates/.default/components/bitrix/catalog.section/.default/template.php @@ -86,7 +86,7 @@ $containerName = 'container-'.$navParams['NavNum']; ?>
-

Каталог товаров

+

ShowTitle(false); ?>

+ + + $sectionId, 'IBLOCK_ID' => 4]; + $res = CIBlockSection::GetList([], $arFilter, false, $arSelect); + if ($arSection = $res->GetNext()) { + if (!empty($arSection['DESCRIPTION'])) { + echo '
'; + echo $arSection['DESCRIPTION']; // выведем SEO текст + echo '
'; + } + } + } + + else{ + ?> +
@@ -223,4 +268,11 @@ $GLOBALS['CATALOG_CURRENT_SECTION_ID'] = $intSectionID;

+ + + +