Тогда возьмите id коллекции к которой привязан товар из $arResult['PROPERTIES']['CML2_COLLECTION']['VALUE'] и с помощью GetList получите его CODE и NAME.
<?
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
$APPLICATION->SetPageProperty("description", "AltroBagno");
$APPLICATION->SetPageProperty("NOT_SHOW_NAV_CHAIN", "Y");
$APPLICATION->SetPageProperty("keywords", "AltroBagno");
$APPLICATION->SetPageProperty("title", "AltroBagno");
$APPLICATION->SetTitle("Новости | AltroBagno");
?>
<?
$arFilterItemsCollection = array(
"ACTIVE" => "Y",
"GLOBAL_ACTIVE" => "Y",
);
if(CModule::IncludeModule("iblock")){
if($_REQUEST['element_code'] != "" && $_REQUEST['element_code']){
$arFilter = Array('IBLOCK_ID'=> "16", "CODE" => $_REQUEST['element_code']);
$cat_id = CIBlockElement::GetList(Array($by=>$order), $arFilter, false, false, array("ID", "CODE", "NAME"));
if($cats = $cat_id->GetNext()){
$arFilterItemsCollection['PROPERTY_CML2_COLLECTION'] = $cats['ID'];
$secion['ID'] = $cats['ID'];
$secion['CODE'] = $cats['CODE'];
$secion['NAME'] = $cats['NAME'];
}
} else {
$secion['ID'] = 417;
$secion['CODE'] = 'beatrice';
$secion['NAME'] = 'Beatrice';
$arFilterItemsCollection['PROPERTY_CML2_COLLECTION'] = $secion['ID'];
}
}
?>
<div class="blog">
<div class="menu">
<a href="/">Главная</a> / <a href="/collection/">Коллекции</a> / <a href="/collection/<?=$secion['CODE']?>/"><?=$secion['NAME']?></a>
</div>
<? // ?PAGEN_1=3
$arFilter = Array('IBLOCK_ID'=> "16");
$cat_list = CIBlockElement::GetList(Array($by=>$order), $arFilter, false, false, array("ID", "CODE", "NAME"));
while($cats = $cat_list->GetNext()){ ?>
<div class="cats_collection <?=($cats['ID'] == $secion['ID']) ? "active" : ""?>"><a href="/collection/<?=$cats['CODE']?>/"><span class="name_t"><?=$cats['NAME']?></span></a></div>
<? } ?>
<!--<h4 style="font-size: 28px;">Коллекция <span class="name_t"><?=$secion['NAME']?></span></h4>-->
</div>
<style>
.row {
display: block;
}
</style>
<div class="tovar">
<?$APPLICATION->IncludeComponent(
"bitrix:catalog.section",
".default",
array(
"ACTION_VARIABLE" => "action",
"ADD_PICT_PROP" => "-",
"ADD_PROPERTIES_TO_BASKET" => "Y",
"ADD_SECTIONS_CHAIN" => "N",
"ADD_TO_BASKET_ACTION" => "ADD",
"AJAX_MODE" => "N",
"AJAX_OPTION_ADDITIONAL" => "",
"AJAX_OPTION_HISTORY" => "N",
"AJAX_OPTION_JUMP" => "N",
"AJAX_OPTION_STYLE" => "Y",
"BACKGROUND_IMAGE" => "-",
"BASKET_URL" => "/personal/basket.php",
"BRAND_PROPERTY" => "-",
"BROWSER_TITLE" => "-",
"CACHE_FILTER" => "N",
"CACHE_GROUPS" => "N",
"CACHE_TIME" => "36000000",
"CACHE_TYPE" => "N",
"COMPATIBLE_MODE" => "N",
"CONVERT_CURRENCY" => "N",
"CURRENCY_ID" => "RUB",
"CUSTOM_FILTER" => "",
"DATA_LAYER_NAME" => "dataLayer",
"DETAIL_URL" => "",
"DISABLE_INIT_JS_IN_COMPONENT" => "N",
"DISCOUNT_PERCENT_POSITION" => "bottom-right",
"DISPLAY_BOTTOM_PAGER" => "N",
"DISPLAY_TOP_PAGER" => "N",
"ELEMENT_SORT_FIELD" => "sort",
"ELEMENT_SORT_FIELD2" => "id",
"ELEMENT_SORT_ORDER" => "asc",
"ELEMENT_SORT_ORDER2" => "desc",
"ENLARGE_PRODUCT" => "PROP",
"ENLARGE_PROP" => "-",
"FILTER_NAME" => "arFilterItemsCollection",
"HIDE_NOT_AVAILABLE" => "N",
"HIDE_NOT_AVAILABLE_OFFERS" => "N",
"IBLOCK_ID" => "8",
"IBLOCK_TYPE" => "xmlcatalog",
"INCLUDE_SUBSECTIONS" => "Y",
"LABEL_PROP" => array(
),
"LABEL_PROP_MOBILE" => "",
"LABEL_PROP_POSITION" => "top-left",
"LAZY_LOAD" => "Y",
"LINE_ELEMENT_COUNT" => "4",
"LOAD_ON_SCROLL" => "N",
"MESSAGE_404" => "",
"MESS_BTN_ADD_TO_BASKET" => "В корзину",
"MESS_BTN_BUY" => "Купить",
"MESS_BTN_DETAIL" => "Подробнее",
"MESS_BTN_LAZY_LOAD" => "Показать ещё",
"MESS_BTN_SUBSCRIBE" => "Подписаться",
"MESS_NOT_AVAILABLE" => "Нет в наличии",
"META_DESCRIPTION" => "-",
"META_KEYWORDS" => "-",
"OFFERS_CART_PROPERTIES" => array(
0 => "ARTNUMBER",
1 => "COLOR_REF",
2 => "SIZES_SHOES",
3 => "SIZES_CLOTHES",
),
"OFFERS_FIELD_CODE" => array(
0 => "",
1 => "",
),
"OFFERS_LIMIT" => "5",
"OFFERS_PROPERTY_CODE" => array(
0 => "COLOR_REF",
1 => "SIZES_SHOES",
2 => "SIZES_CLOTHES",
3 => "",
),
"OFFERS_SORT_FIELD" => "sort",
"OFFERS_SORT_FIELD2" => "id",
"OFFERS_SORT_ORDER" => "asc",
"OFFERS_SORT_ORDER2" => "desc",
"OFFER_ADD_PICT_PROP" => "MORE_PHOTO",
"OFFER_TREE_PROPS" => array(
0 => "COLOR_REF",
1 => "SIZES_SHOES",
2 => "SIZES_CLOTHES",
),
"PAGER_BASE_LINK_ENABLE" => "N",
"PAGER_DESC_NUMBERING" => "N",
"PAGER_DESC_NUMBERING_CACHE_TIME" => "36000",
"PAGER_SHOW_ALL" => "N",
"PAGER_SHOW_ALWAYS" => "N",
"PAGER_TEMPLATE" => ".default",
"PAGER_TITLE" => "Товары",
"PAGE_ELEMENT_COUNT" => "8",
"PARTIAL_PRODUCT_PROPERTIES" => "N",
"PRICE_CODE" => array(
0 => "BASE",
),
"PRICE_VAT_INCLUDE" => "Y",
"PRODUCT_BLOCKS_ORDER" => "price,props,sku,quantityLimit,quantity,buttons,compare",
"PRODUCT_DISPLAY_MODE" => "Y",
"PRODUCT_ID_VARIABLE" => "id",
"PRODUCT_PROPERTIES" => array(
0 => "CML2_COLLECTION",
1 => "CML2_DEST",
2 => "CML2_VRASHENIE",
3 => "CML2_SHLANG",
4 => "CML2_CRAFT",
5 => "CML2_MECH",
6 => "CML2_WHERE",
7 => "CML2_IZLIV",
8 => "CML2_WHERE_TOOLS",
9 => "CML2_AREA",
10 => "CML2_POSTITION",
11 => "CML2_SYSTEM_VS",
12 => "CML2_STANDART_PODVODKA",
13 => "CML2_STYLE",
14 => "CML2_TYPE_PODVODKI",
15 => "CML2_SETTINGS",
16 => "CML2_SHAPE",
17 => "CML2_FORM",
18 => "CML2_COLOR",
),
"PRODUCT_PROPS_VARIABLE" => "prop",
"PRODUCT_QUANTITY_VARIABLE" => "",
"PRODUCT_ROW_VARIANTS" => "[{'VARIANT':'3','BIG_DATA':false},{'VARIANT':'3','BIG_DATA':false}]",
"PRODUCT_SUBSCRIPTION" => "Y",
"PROPERTY_CODE" => array(
0 => "CML2_COLLECTION",
1 => "CML2_ARTICLE",
2 => "CML2_DEST",
3 => "CML2_DEEP",
4 => "CML2_HEIGHT",
5 => "CML2_HEIGHT_TO",
6 => "CML2_WATER_HEIGHT",
7 => "CML2_WATER_LENGHT",
8 => "CML2_VRASHENIE",
9 => "CML2_SHLANG",
10 => "CML2_CRAFT",
11 => "CML2_MECH",
12 => "CML2_WHERE",
13 => "CML2_IZLIV",
14 => "CML2_WHERE_TOOLS",
15 => "CML2_AREA",
16 => "CML2_POSTITION",
17 => "CML2_SYSTEM_VS",
18 => "CML2_STANDART_PODVODKA",
19 => "CML2_STYLE",
20 => "CML2_TYPE_PODVODKI",
21 => "CML2_SETTINGS",
22 => "CML2_SHAPE",
23 => "CML2_FORM",
24 => "CML2_COLOR",
25 => "NEWPRODUCT",
26 => "",
),
"PROPERTY_CODE_MOBILE" => array(
0 => "CML2_COLLECTION",
1 => "CML2_ARTICLE",
2 => "CML2_DEST",
3 => "CML2_DEEP",
4 => "CML2_HEIGHT",
5 => "CML2_HEIGHT_TO",
6 => "CML2_WATER_HEIGHT",
7 => "CML2_WATER_LENGHT",
8 => "CML2_VRASHENIE",
9 => "CML2_SHLANG",
10 => "CML2_CRAFT",
11 => "CML2_MECH",
12 => "CML2_WHERE",
13 => "CML2_IZLIV",
14 => "CML2_WHERE_TOOLS",
15 => "CML2_AREA",
16 => "CML2_POSTITION",
17 => "CML2_SYSTEM_VS",
18 => "CML2_STANDART_PODVODKA",
19 => "CML2_STYLE",
20 => "CML2_TYPE_PODVODKI",
21 => "CML2_SETTINGS",
22 => "CML2_SHAPE",
23 => "CML2_FORM",
24 => "CML2_COLOR",
),
"RCM_PROD_ID" => $_REQUEST["PRODUCT_ID"],
"RCM_TYPE" => "personal",
"SECTION_CODE" => "",
"SECTION_ID" => $_REQUEST["section_id"],
"SECTION_ID_VARIABLE" => "SECTION_ID",
"SECTION_URL" => "",
"SECTION_USER_FIELDS" => array(
0 => "",
1 => "",
),
"SEF_MODE" => "N",
"SET_BROWSER_TITLE" => "Y",
"SET_LAST_MODIFIED" => "N",
"SET_META_DESCRIPTION" => "Y",
"SET_META_KEYWORDS" => "Y",
"SET_STATUS_404" => "N",
"SET_TITLE" => "Y",
"SHOW_404" => "N",
"SHOW_ALL_WO_SECTION" => "Y",
"SHOW_CLOSE_POPUP" => "N",
"SHOW_DISCOUNT_PERCENT" => "Y",
"SHOW_FROM_SECTION" => "N",
"SHOW_MAX_QUANTITY" => "N",
"SHOW_OLD_PRICE" => "N",
"SHOW_PRICE_COUNT" => "1",
"SHOW_SLIDER" => "N",
"SLIDER_INTERVAL" => "3000",
"SLIDER_PROGRESS" => "N",
"TEMPLATE_THEME" => "",
"USE_ENHANCED_ECOMMERCE" => "Y",
"USE_MAIN_ELEMENT_SECTION" => "N",
"USE_PRICE_COUNT" => "N",
"USE_PRODUCT_QUANTITY" => "N",
"COMPONENT_TEMPLATE" => ".default",
"DISPLAY_COMPARE" => "N"
),
false
);?>
</div>
<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");?>
Line 1397: $ar_result = array();
Line 1402: $ar_result[$name] = $value;
Line 1405: $this->session_id = urldecode($ar_result['session_id']);
Line 1406: $this->member_id = urldecode($ar_result['member_id']);
Line 1407: $this->hash = urldecode($ar_result['hash']);
Line 1408: $this->status = urldecode($ar_result['status']);
Line 1409: $this->text = urldecode($ar_result['text']);
Line 1411: if (isset($ar_result['encoding']))
Line 1412: $this->encoding = urldecode($ar_result['encoding']);
Line 1414: $this->strParameters = base64_decode(urldecode($ar_result['parameters']));
Line 1419: if (isset($ar_result['encoding']))
Line 1426: $this->version = $ar_result['version'];
Line 41: if ($ar_result = $db_res->GetNext()) {
Line 42: $CODE = $ar_result['CODE'];
Line 337: while($ar_result = $db_list->GetNext())
Line 377: <p><?=$ar_result['NAME']?></p>
Line 389: "SECTION_ID" => $ar_result['ID'],