<div class="menu">
<a href="/">Главная</a> / <a href="/collection/">Коллекции</a> / <a href="/collection/<?=$secion['CODE']?>/"><?=$secion['NAME']?></a>
</div>
<div class="menu">
<a href="/">Главная</a> / <a href="/catalog/">Каталог</a> / <a href="/catalog/cat/<?=$arResult['IBLOCK_SECTION_ID']?>/"><?=$section_name?></a>
</div>
<a href="/collection/<?=$secion['CODE']?>/"><?=$secion['NAME']?></a>
$arSelect = Array(
'ID',
'CODE'
);
$arFilter = Array(
'IBLOCK_ID'=> $arResult['IBLOCK_ID'],
'ID' => $arResult['IBLOCK_SECTION_ID']
);
$db_res = CIBlockSection::GetList(
Array(),
$arFilter,
true,
$arSelect
);
if ($ar_result = $db_res->GetNext()) {
$CODE = $ar_result['CODE'];
}
<?
$arSelect = Array(
'ID',
'CODE'
);
$arFilter = Array(
'IBLOCK_ID'=> $arResult['IBLOCK_ID'],
'ID' => $arResult['IBLOCK_SECTION_ID']
);
$db_res = CIBlockSection::GetList(
Array(),
$arFilter,
true,
$arSelect
);
if ($ar_result = $db_res->GetNext()) {
$CODE = $ar_result['CODE'];
}
?>
<div class="menu">
<a href="/">Главная</a> / <a href="/catalog/">Каталог</a> / <a href="/catalog/cat/<?=$arResult['IBLOCK_SECTION_ID']?>/"><?=$section_name?></a> / <a href="/collection/<?=$secion['CODE']?>/"><?=$secion['NAME']?></a> / <a href="/collection/<?=$secion['CODE']?>/"><?=$secion['NAME']?></a>
</div>
<? echo $CODE; ?>
Line 11: * @var array $arResult
Line 134: $arResult['APP_NAME'] = $arApp['MENU_NAME'];
Line 135: if(strlen($arResult['APP_NAME']) <= 0)
Line 137: $arResult['APP_NAME'] = $arApp['MENU_NAME_DEFAULT'];
Line 139: if(strlen($arResult['APP_NAME']) <= 0)
Line 141: $arResult['APP_NAME'] = $arApp['MENU_NAME_LICENSE'];
Line 169: $arResult['APP_NAME'] = $placementHandlerInfo['TITLE'];
Line 171: elseif(strlen($arResult['APP_NAME']) <= 0)
Line 173: $arResult['APP_NAME'] = $arApp['APP_NAME'];
Line 182: && strlen($arResult['APP_NAME']) > 0)
Line 184: $arResult['ID'] = $arApp['ID'];
Line 185: $arResult['APP_ID'] = $arApp['CLIENT_ID'];
Line 186: $arResult['APP_VERSION'] = $arApp['VERSION'];
Line 187: $arResult['APP_INSTALLED'] = $arApp['INSTALLED'] == \Bitrix\Rest\AppTable::INSTALLED;
Line 188: $arResult['APP_CODE'] = $arApp['CODE'];
Line 191: $arResult['APP_OPTIONS'] = COption::GetOptionString("rest", "options_".$arResult['APP_ID'], "");
Line 191: $arResult['APP_OPTIONS'] = COption::GetOptionString("rest", "options_".$arResult['APP_ID'], "");
Line 192: if(strlen($arResult['APP_OPTIONS']) > 0)
Line 193: $arResult['APP_OPTIONS'] = unserialize($arResult['APP_OPTIONS']);
Line 193: $arResult['APP_OPTIONS'] = unserialize($arResult['APP_OPTIONS']);
Line 195: $arResult['APP_OPTIONS'] = array();
Line 198: $arResult['USER_OPTIONS'] = CUserOptions::GetOption("app_options", "options_".$arResult['APP_ID'], array());
Line 198: $arResult['USER_OPTIONS'] = CUserOptions::GetOption("app_options", "options_".$arResult['APP_ID'], array());
Line 201: $arAppParams = CUserOptions::GetOption("app_options", "params_".$arResult['APP_ID']."_".$arResult['APP_VERSION'], array());
Line 201: $arAppParams = CUserOptions::GetOption("app_options", "params_".$arResult['APP_ID']."_".$arResult['APP_VERSION'], array());
Line 204: $arResult['FIRST_RUN'] = !array_key_exists('install', $arAppParams) || !$arAppParams['install'];
Line 206: $arResult['AUTH'] = null;
Line 209: $arResult['AUTH'] = \Bitrix\Rest\Application::getAuthProvider()->get(
Line 218: $arResult['AUTH'] = array();
Line 221: if(!is_array($arResult['AUTH']) || !$arResult['AUTH']['access_token'])
Line 221: if(!is_array($arResult['AUTH']) || !$arResult['AUTH']['access_token'])
Line 223: if($arResult['AUTH']['error'])
Line 226: $arResult['AUTH']['error'] == 'ERROR_OAUTH'
Line 227: && $arResult['AUTH']['error_description'] == 'Application not installed'
Line 241: $arResult['AUTH'] = \Bitrix\Rest\Application::getAuthProvider()->get(
Line 250: if($arResult['AUTH']['error'])
Line 252: if($arResult['AUTH']['error'] !== "PAYMENT_REQUIRED")
Line 254: ShowError($arResult['AUTH']['error'].($arResult['AUTH']['error_description'] ? ': '.$arResult['AUTH']['error_description'] : ''));
Line 254: ShowError($arResult['AUTH']['error'].($arResult['AUTH']['error_description'] ? ': '.$arResult['AUTH']['error_description'] : ''));
Line 254: ShowError($arResult['AUTH']['error'].($arResult['AUTH']['error_description'] ? ': '.$arResult['AUTH']['error_description'] : ''));
Line 268: !$arResult['AUTH']['error']
Line 270: $arResult['AUTH']['status'] !== $arApp['STATUS']
Line 271: || $arResult['AUTH']['date_finish'] != $dateFinish
Line 275: $arApp['STATUS'] = $arResult['AUTH']['status'];
Line 276: $arApp['DATE_FINISH'] = $arResult['AUTH']['date_finish'] ? \Bitrix\Main\Type\Date::createFromTimestamp($arResult['AUTH']['date_finish']) : '';
Line 276: $arApp['DATE_FINISH'] = $arResult['AUTH']['date_finish'] ? \Bitrix\Main\Type\Date::createFromTimestamp($arResult['AUTH']['date_finish']) : '';
Line 293: $arResult['DETAIL_URL'] = str_replace("#code#", $arApp['CODE'], $arParams['DETAIL_URL']);
Line 295: $arResult['APP_STATUS'] = \Bitrix\Rest\AppTable::getAppStatusInfo($arApp, $arResult['DETAIL_URL']);
Line 295: $arResult['APP_STATUS'] = \Bitrix\Rest\AppTable::getAppStatusInfo($arApp, $arResult['DETAIL_URL']);
Line 297: $arResult['APP_NEED_REINSTALL'] = $arApp['STATUS'] == \Bitrix\Rest\AppTable::STATUS_PAID && !isset($arApp['SHARED_KEY']);
Line 299: $arResult['APP_SID'] = md5(uniqid(rand(), true));
Line 301: $arResult['IS_ADMIN'] = \CRestUtil::isAdmin();
Line 302: $arResult['REST_PATH'] = \Bitrix\Main\Config\Option::get("rest", "server_path", "/rest");
Line 304: if(!is_array($arResult['AUTH']) || $arResult['AUTH']['error'])
Line 304: if(!is_array($arResult['AUTH']) || $arResult['AUTH']['error'])
Line 306: $arResult['APP_STATUS']['PAYMENT_ALLOW'] = 'N';
Line 310: if($arResult['APP_STATUS']['PAYMENT_ALLOW'] == 'Y' && isset($_REQUEST['action']) && in_array($_REQUEST['action'], array('access_refresh', 'set_option', 'set_installed')) && check_bitrix_sessid())
Line 320: echo '{"access_token":"'.$arResult["AUTH"]['access_token'].'","refresh_token":"'.$arResult['AUTH']['refresh_token'].'","expires_in":"'.$arResult["AUTH"]['expires_in'].'"}';
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'],
print('<pre>'.print_r((array)$arResult,true).'</pre>');
die('<pre>'.print_r((array)$ar_result,true).'</pre>');
<?
$arSelect = Array(
'ID',
'CODE', 'NAME'
);
$arFilter = Array(
'IBLOCK_ID'=> $arResult['IBLOCK_ID'],
'ID' => $arResult['IBLOCK_SECTION_ID']
);
$db_res = CIBlockSection::GetList(
Array(),
$arFilter,
true,
$arSelect
);
if ($ar_result = $db_res->GetNext()) {
$CODE = $ar_result['CODE'];
$NAME = $ar_result['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");?>
Тогда возьмите id коллекции к которой привязан товар из $arResult['PROPERTIES']['CML2_COLLECTION']['VALUE'] и с помощью GetList получите его CODE и NAME.
<?
$arSelect = Array(
'IBLOCK_ID',
'ID',
'NAME',
'CODE'
);
$arFilter = Array(
'ID' => $arResult['PROPERTIES']['CML2_COLLECTION']['VALUE']
);
$db_res = CIBlockElement::GetList(Array(), $arFilter, false, false, $arSelect);
if($arElement = $db_res->GetNext()) {
$CODE = $arElement['CODE'];
$NAME = $arElement['NAME'];
}
?>