|
|
Ok!
|
|
|
Ok!
|
|---|---|---|---|---|
| 253 | $iterator = CIBlockElement::GetList(
array("ID"=>"DESC"),
array('IBLOCK_ID' => 26, '=ACTIVE' => 'Y', 'IBLOCK_SECTION_ID', ['LOGIC' => 'OR', 'PREVIEW_TEXT' => false, 'DETAIL_TEXT' => false]),
false,
false,
array('ID', 'NAME', 'CODE', 'IBLOCK_SECTION_ID')
);
while($item = $iterator->Fetch()) {
$was_id = 0;
$nav = CIBlockSection::GetNavChain(false, $item['IBLOCK_SECTION_ID'], array(), false);
$url = "";
while($nav->Fetch()){
if($was_id != $item['ID']){
$url_length = count($nav->arResult);
$url .= $nav->arResult[$url_length - 1]['CODE'] . "/";
echo $item['ID'] . ';"' . $item['NAME'] . '";"https://lamaree.ru/catalog/' . $url . $item['CODE'] . '/"' . "
";
$was_id = $item['ID'];
}
}
} | url, bitrix, catalog | 980 | Выбрать из каталога Битрикс товары без описаний с URL |
| 238 | "SECTION_URL" => $arResult["FOLDER"].$arResult["URL_TEMPLATES"]["section"], | bitrix, catalog.section.list | 500 | Путь секции для catalog.section.list |