<?
if($_REQUEST['per_page']) {
$_SESSION['per_page']=$_REQUEST['per_page'];
//$_COOKIE['per_page']=$_REQUEST['per_page'];
}
if($_REQUEST['order_by']) {
$_SESSION['order_by']=$_REQUEST['order_by'];
//$_COOKIE['per_page']=$_REQUEST['per_page'];
}
if($_REQUEST['order_by_mode']) {
$_SESSION['order_by_mode']=$_REQUEST['order_by_mode'];
//$_COOKIE['per_page']=$_REQUEST['per_page'];
}
if(empty($_SESSION['per_page'])) {
$per_page=32;
} else {
$per_page=$_SESSION['per_page'];
//$per_page=$_COOKIE['per_page'];
//debugToConsole($_SESSION);
}
if(empty($_SESSION['order_by'])) {
$order_by = "CREATED_DATE";
} else {
$order_by = $_SESSION['order_by'];
}
if(empty($_SESSION['order_by_mode'])) {
$order_by_mode = "desc";
} else {
$order_by_mode = $_SESSION['order_by_mode'];
}
?>
<?$APPLICATION->IncludeComponent(
"bitrix:catalog",
"main_catalog",
array(
"IBLOCK_TYPE" => "1c_catalog",
"IBLOCK_ID" => "64",
"HIDE_NOT_AVAILABLE" => "N",
"SECTION_ID_VARIABLE" => "SECTION_ID",
"SEF_MODE" => "Y",
"SEF_FOLDER" => "/contract/",
"AJAX_MODE" => "N",
"AJAX_OPTION_JUMP" => "N",
"AJAX_OPTION_STYLE" => "Y",
"AJAX_OPTION_HISTORY" => "N",
"CACHE_TYPE" => "N",
"CACHE_TIME" => "10800",
"CACHE_FILTER" => "N",
"CACHE_GROUPS" => "Y",
"SET_STATUS_404" => "N",
"SET_TITLE" => "Y",
"ADD_SECTIONS_CHAIN" => "Y",
"ADD_ELEMENT_CHAIN" => "Y",
"USE_ELEMENT_COUNTER" => "N",
"USE_FILTER" => "N",
"USE_REVIEW" => "N",
"USE_COMPARE" => "N",
"PRICE_CODE" => array(
0 => "Розничная",
),
"USE_PRICE_COUNT" => "N",
"SHOW_PRICE_COUNT" => "1",
"PRICE_VAT_INCLUDE" => "Y",
"PRICE_VAT_SHOW_VALUE" => "N",
"CONVERT_CURRENCY" => "N",
"BASKET_URL" => "/personal/cart",
"ACTION_VARIABLE" => "action",
"PRODUCT_ID_VARIABLE" => "id",
"USE_PRODUCT_QUANTITY" => "Y",
"ADD_PROPERTIES_TO_BASKET" => "N",
"SHOW_TOP_ELEMENTS" => "N",
"SECTION_COUNT_ELEMENTS" => "Y",
"SECTION_TOP_DEPTH" => "1",
"SECTIONS_VIEW_MODE" => "LIST",
"SECTIONS_SHOW_PARENT_NAME" => "N",
"PAGE_ELEMENT_COUNT" => $per_page,
"LINE_ELEMENT_COUNT" => "1",
"ELEMENT_SORT_FIELD" => "SORT",
"ELEMENT_SORT_ORDER" => "asc",
"ELEMENT_SORT_FIELD2" => $order_by,
"ELEMENT_SORT_ORDER2" => $order_by_mode,
"LIST_PROPERTY_CODE" => array(
0 => "QUANT_IN_PACK",
1 => "UF_SECTION_PICS",
2 => "UF_SECTION_COVER",
3 => "",
),
"INCLUDE_SUBSECTIONS" => "Y",
"LIST_META_KEYWORDS" => "-",
"LIST_META_DESCRIPTION" => "-",
"LIST_BROWSER_TITLE" => "-",
"DETAIL_PROPERTY_CODE" => array(
0 => "",
1 => "",
),
"DETAIL_META_KEYWORDS" => "-",
"DETAIL_META_DESCRIPTION" => "-",
"DETAIL_BROWSER_TITLE" => "NAME",
"DETAIL_DISPLAY_NAME" => "Y",
"DETAIL_DETAIL_PICTURE_MODE" => "IMG",
"DETAIL_ADD_DETAIL_TO_SLIDER" => "Y",
"DETAIL_DISPLAY_PREVIEW_TEXT_MODE" => "H",
"LINK_IBLOCK_TYPE" => "",
"LINK_IBLOCK_ID" => "",
"LINK_PROPERTY_SID" => "",
"LINK_ELEMENTS_URL" => "link.php?PARENT_ELEMENT_ID=#ELEMENT_ID#",
"USE_ALSO_BUY" => "N",
"USE_STORE" => "N",
"PAGER_TEMPLATE" => "main_template",
"DISPLAY_TOP_PAGER" => "N",
"DISPLAY_BOTTOM_PAGER" => "Y",
"PAGER_TITLE" => "Товары",
"PAGER_SHOW_ALWAYS" => "Y",
"PAGER_DESC_NUMBERING" => "N",
"PAGER_DESC_NUMBERING_CACHE_TIME" => "36000",
"PAGER_SHOW_ALL" => "N",
"TEMPLATE_THEME" => "",
"ADD_PICT_PROP" => "-",
"LABEL_PROP" => "-",
"SHOW_DISCOUNT_PERCENT" => "N",
"SHOW_OLD_PRICE" => "Y",
"DETAIL_SHOW_MAX_QUANTITY" => "Y",
"MESS_BTN_BUY" => "Купить",
"MESS_BTN_ADD_TO_BASKET" => "В корзину",
"MESS_BTN_COMPARE" => "Сравнение",
"MESS_BTN_DETAIL" => "Подробнее",
"MESS_NOT_AVAILABLE" => "Нет в наличии",
"DETAIL_USE_VOTE_RATING" => "N",
"DETAIL_USE_COMMENTS" => "N",
"DETAIL_BRAND_USE" => "N",
"AJAX_OPTION_ADDITIONAL" => "",
"FILTER_VIEW_MODE" => "VERTICAL",
"PRODUCT_QUANTITY_VARIABLE" => "quantity",
"PRODUCT_PROPS_VARIABLE" => "prop",
"PARTIAL_PRODUCT_PROPERTIES" => "N",
"PRODUCT_PROPERTIES" => array(
),
"ALSO_BUY_ELEMENT_COUNT" => "8",
"ALSO_BUY_MIN_BUYES" => "7",
"DETAIL_BLOG_USE" => "N",
"DETAIL_VK_USE" => "N",
"DETAIL_VK_API_ID" => "4553513",
"DETAIL_FB_USE" => "N",
"FILTER_NAME" => "",
"FILTER_FIELD_CODE" => array(
0 => "ID",
1 => "NAME",
2 => "",
),
"FILTER_PROPERTY_CODE" => array(
0 => "",
1 => "",
),
"FILTER_PRICE_CODE" => "",
"DETAIL_CHECK_SECTION_ID_VARIABLE" => "N",
"COMPONENT_TEMPLATE" => "main_catalog",
"DETAIL_SET_CANONICAL_URL" => "N",
"SHOW_DEACTIVATED" => "N",
"USE_MAIN_ELEMENT_SECTION" => "N",
"SET_LAST_MODIFIED" => "N",
"SECTION_BACKGROUND_IMAGE" => "-",
"DETAIL_BACKGROUND_IMAGE" => "-",
"PAGER_BASE_LINK_ENABLE" => "N",
"SHOW_404" => "N",
"MESSAGE_404" => "",
"COMMON_SHOW_CLOSE_POPUP" => "N",
"SIDEBAR_SECTION_SHOW" => "Y",
"SIDEBAR_DETAIL_SHOW" => "Y",
"SIDEBAR_PATH" => "",
"USE_SALE_BESTSELLERS" => "N",
"USE_COMMON_SETTINGS_BASKET_POPUP" => "N",
"COMMON_ADD_TO_BASKET_ACTION" => "",
"TOP_ADD_TO_BASKET_ACTION" => "ADD",
"SECTION_ADD_TO_BASKET_ACTION" => "ADD",
"DETAIL_ADD_TO_BASKET_ACTION" => array(
0 => "BUY",
),
"DETAIL_SHOW_BASIS_PRICE" => "Y",
"USE_BIG_DATA" => "N",
"BIG_DATA_RCM_TYPE" => "bestsell",
"DISABLE_INIT_JS_IN_COMPONENT" => "N",
"DETAIL_SET_VIEWED_IN_COMPONENT" => "N",
"SEF_URL_TEMPLATES" => array(
"sections" => "",
"section" => "#SECTION_CODE#/",
"element" => "#SECTION_CODE#/#ELEMENT_CODE#/",
"compare" => "compare.php?action=#ACTION_CODE#",
"smart_filter" => "#SECTION_CODE#/filter/#SMART_FILTER_PATH#/apply/",
),
"VARIABLE_ALIASES" => array(
"compare" => array(
"ACTION_CODE" => "action",
),
)
),
false
);?>