Answer the question
In order to leave comments, you need to log in
Why does Bitrix display the second level section as the main one?
Bitrix component:catalog:section:top
<?foreach($arResult["SECTIONS"] as $arSection):?>
<div>
<div><?=$arSection["NAME"]?></a></div>
</div>
<div class="panel">
<div class="panel-collapse collapse">
<div class="body">
<table class="table">
<tbody class="data">
<?if(!empty($arSection["ITEMS"])):?>
<?foreach($arSection["ITEMS"] as $arItem):?>
<tr id="<?=$this->GetEditAreaId($arItem['ID']);?>">
<td><?=$arItem["NAME"]?></td>
<td><?=$arItem["DISPLAY_PROPERTIES"]["PRICE"]["DISPLAY_VALUE"]?></td>
</tr>
<?endforeach?>
<?endif;?>
</tbody>
</table>
</div>
</div>
</div>
<?endforeach;?>
</div>
Answer the question
In order to leave comments, you need to log in
Hello, for the main and the catalog section, the templates of the complex component (bitrix.catalog) are different.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question