$arSelect = Array("ID", "NAME", "PROPERTY_c_serv", "PROPERTY_P_CAT_VALUE");
$arFilter = Array("IBLOCK_ID" => "10");
$res = CIBlockElement::GetList(Array(), $arFilter, false, array("nPageSize" => 25), $arSelect);
while($arFields = $res->fetch()){
$ID = $arFields["PROPERTY_P_CAT_VALUE"];
$rest = CIBlockElement::GetByID($ID);
if($ar_rest = $rest->GetNext())
echo $ar_rest['NAME']; // Название элемента
}
<? require_once($_SERVER['DOCUMENT_ROOT'] . "/bitrix/modules/main/include/prolog_before.php");
$tree = CIBlockSection::GetTreeList(
$arFilter1 = array('IBLOCK_ID' => 13, 'ACTIVE' => 'Y', 'UF_MAIN_CHECK' => '1',"TOP_DEPTH" => '1'),
$arSelect=Array()
);
while($section = $tree->GetNext()) {
echo 'http://test.com/'.$section[CODE].'/';
};
?>
<?
if ($_POST["BasketDelete"] and CModule::IncludeModule("sale"))
{
CSaleBasket::DeleteAll(CSaleBasket::GetBasketUserID());
}
?>
<input style="background-color: #fff0;border: 0;cursor: pointer;" class="basket__icon basket__icon" type="submit" value="Очистить корзину" name="BasketDelete">