<?
require_once($_SERVER['DOCUMENT_ROOT']."/bitrix/modules/main/include/prolog_before.php");
CModule::IncludeModule("iblock");
$arSelect = Array("NAME", "ID", "DETAIL_PAGE_URL", "SECTION_ID");
$arFilter = Array("IBLOCK_ID"=>10, "SECTION_ID"=>'69, 114', "INCLUDE_SUBSECTIONS" => "Y", "PREVIEW_PICTURE" => false);
$res = CIBlockElement::GetList(Array("ID"=>"DESC"), $arFilter, false, Array("nPageSize"=>500000), $arSelect);
while($ob = $res->GetNextElement())
{
$arFields = $ob->GetFields();
{?>
<?=$arFields[ID]?> - <a href="<?=$arFields[DETAIL_PAGE_URL]?>"><?=$arFields[NAME]?></a>
- Подраздел №<?=$arFields[IBLOCK_SECTION_ID]?></br>
<?}
}
?>
bitrix/templates/шаблон/components/bitrix/catalog.section/название/template.phpв нем нужно найти что то вроде этого: PRICE и заменить участок кода с этой переменной
<ul>
<?
\Bitrix\Main\Loader::IncludeModule('iblock');
$arFilter = [
'IBLOCK_ID' => 5
];
$arOrder = [
'LEFT_MARGIN' => 'ASC'
];
$arSelect = [
'ID',
'LEFT_MARGIN',
'DEPTH_LEVEL',
'NAME'
];
$resSections = \CIBlockSection::GetList($arOrder, $arFilter, false, $arSelect);
while( $arSection = $resSections->fetch() )
{?><li><?=$arSection[NAME]?></li><?}
?>
</ul>