A
A
Alexander Chibilyaev2016-01-06 18:09:46
1C-Bitrix
Alexander Chibilyaev, 2016-01-06 18:09:46

How to set up pagination in Bitrix?

Good evening.
The following problem occurred in the Bitrix component catalog.section.
The component is specified to display 15 records, but it displays everything. How to fix it?
Here is the array

Array(
"PRODUCT_DISPLAY_MODE" => "N",
"ADD_PICT_PROP" => "-",
"OFFER_ADD_PICT_PROP" => "FILE",
"OFFER_TREE_PROPS" => array("-"),
"PRODUCT_SUBSCRIPTION" => "N",
"SHOW_DISCOUNT_PERCENT" => "N",
"SHOW_OLD_PRICE" => "N",
"SHOW_CLOSE_POPUP" => "Y",
"MESS_BTN_BUY" => "Buy",
"MESS_BTN_ADD_TO_BASKET" => "Add to Cart",
"MESS_BTN_SUBSCRIBE" = > "Subscribe",
"MESS_BTN_DETAIL" => "Details",
"MESS_NOT_AVAILABLE" => "Out of stock",
"AJAX_MODE" => "N",
"SEF_MODE" => "N",
"IBLOCK_TYPE" => "shop",
"IBLOCK_ID" => "4",
"SECTION_ID" => "216",
"SECTION_CODE" => "",
"SECTION_USER_FIELDS" => array("",""),
"ELEMENT_SORT_FIELD" => "sort",
"ELEMENT_SORT_ORDER" => "asc",
"ELEMENT_SORT_FIELD2" => "name",
" ELEMENT_SORT_ORDER2" => "asc",
"FILTER_NAME" => "arrFilter",
"INCLUDE_SUBSECTIONS" => "Y",
"SHOW_ALL_WO_SECTION" => "Y",
"SECTION_URL" => "",
"DETAIL_URL" => "# SITE_DIR#/shop/product/index.php?PARENT_ELEMENT_ID=#SECTION_ID#&ELEMENT_ID=#ID#",
"BASKET_URL"=> "/personal/basket.php",
"ACTION_VARIABLE" => "action",
"PRODUCT_ID_VARIABLE" => "id",
"PRODUCT_QUANTITY_VARIABLE" => "quantity",
"ADD_PROPERTIES_TO_BASKET" => "Y",
"PRODUCT_PROPS_VARIABLE" => "prop",
"PARTIAL_PRODUCT_PROPERTIES" => "N",
"SECTION_ID_VARIABLE" => "SECTION_ID",
"ADD_SECTIONS_CHAIN" => "Y",
"DISPLAY_COMPARE" => "N",
"SET_TITLE" => "Y",
"SET_BROWSER_TITLE" => "Y",
"BROWSER_TITLE" => "-",
"SET_META_KEYWORDS" => "Y",
"META_KEYWORDS" => "",
"SET_META_DESCRIPTION" => "Y",
"META_DESCRIPTION " => "",
"SET_LAST_MODIFIED" => "Y",
"USE_MAIN_ELEMENT_SECTION" => "Y",
"SET_STATUS_404" => "Y",
"PAGE_ELEMENT_COUNT" => "15",
"LINE_ELEMENT_COUNT" => "",
"PROPERTY_CODE" => array("","ARTICUL","VID","HEIGHT","WIDTH","IMG1","IMG10","IMG11","IMG12","IMG13","IMG14", "IMG15","IMG2","IMG3","IMG4","IMG5","IMG6","IMG7","IMG8","IMG9","KOMPLEKT","KREPLENIE","BESTPRICE","MAT ","INMAIN","OPISANIE","PROIZ","SOSTAV","YXOD","FORMA","COLOR",""),
"OFFERS_FIELD_CODE" => array(),
"OFFERS_PROPERTY_CODE" => array( ),
"OFFERS_SORT_FIELD" => "sort",
"OFFERS_SORT_ORDER" =>"asc",
"OFFERS_SORT_FIELD2" => "active_from",
"OFFERS_SORT_ORDER2" => "desc",
"OFFERS_LIMIT" => "5",
"BACKGROUND_IMAGE" => "-",
"PRICE_CODE" => array(),
" USE_PRICE_COUNT" => "Y",
"SHOW_PRICE_COUNT" => "1",
"PRICE_VAT_INCLUDE" => "Y",=> array(), "USE_PRICE_COUNT" => "Y", "SHOW_PRICE_COUNT" => "1", "PRICE_VAT_INCLUDE" => "Y",=> array(), "USE_PRICE_COUNT" => "Y", "SHOW_PRICE_COUNT" => "1", "PRICE_VAT_INCLUDE" => "Y",
"PRODUCT_PROPERTIES" => array(),
"USE_PRODUCT_QUANTITY" => "Y",
"CACHE_TYPE" => "A",
"CACHE_TIME" => "36000000",
"CACHE_FILTER" => "Y",
"CACHE_GROUPS" => "Y",
"DISPLAY_TOP_PAGER" => "N",
"DISPLAY_BOTTOM_PAGER" => "Y",
"PAGER_TITLE" => "Products",
"PAGER_SHOW_ALWAYS" => "Y",
"PAGER_TEMPLATE" => "",
"PAGER_DESC_NUMBERING " => "Y",
"PAGER_DESC_NUMBERING_CACHE_TIME" => "36000",
"PAGER_SHOW_ALL" => "Y",
"HIDE_NOT_AVAILABLE" => "Y",
"OFFERS_CART_PROPERTIES" => array(),
"AJAX_OPTION_JUMP" => "N",
"AJAX_OPTION_STYLE" => "Y",
"AJAX_OPTION_HISTORY" => "N",
"CONVERT_CURRENCY" => "Y",
"CURRENCY_ID" => "RUB",
"ADD_TO_BASKET_ACTION" => "ADD",
"PAGER_BASE_LINK_ENABLE" => "Y",
"SHOW_404" => "Y",
"MESSAGE_404" => "",
"PAGER_BASE_LINK" => "",
"PAGER_PARAMS_NAME" => "arrPager",
"COMPONENT_TEMPLATE" => "catalogtextile",
"TEMPLATE_THEME" => "blue",
"LABEL_PROP" => "-",
"MESS_BTN_COMPARE" => "Compare",
"AJAX_OPTION_ADDITIONAL" => "",
"FILE_404" => ""
)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Chibilyaev, 2016-01-06
@AAChibilyaev

I found the answer myself. I'm sorry)

Array(
"PRODUCT_DISPLAY_MODE" => "N",
"ADD_PICT_PROP" => "-",
"OFFER_ADD_PICT_PROP" => "FILE",
"OFFER_TREE_PROPS" => array("-"),
"PRODUCT_SUBSCRIPTION" => "N",
"SHOW_DISCOUNT_PERCENT" => "N",
"SHOW_OLD_PRICE" => "N",
"SHOW_CLOSE_POPUP" => "Y",
"MESS_BTN_BUY" => "Buy",
"MESS_BTN_ADD_TO_BASKET" => "Add to Cart",
"MESS_BTN_SUBSCRIBE" = > "Subscribe",
"MESS_BTN_DETAIL" => "Details",
"MESS_NOT_AVAILABLE" => "Out of stock",
"AJAX_MODE" => "N",
"SEF_MODE" => "N",
"IBLOCK_TYPE" => "shop",
"IBLOCK_ID" => "4",
"SECTION_ID" => "216",
"SECTION_CODE" => "",
"SECTION_USER_FIELDS" => array("",""),
"ELEMENT_SORT_FIELD" => "sort",
"ELEMENT_SORT_ORDER" => "asc",
"ELEMENT_SORT_FIELD2" => "name",
" ELEMENT_SORT_ORDER2" => "asc",
"FILTER_NAME" => "arrFilter",
"INCLUDE_SUBSECTIONS" => "Y",
"SHOW_ALL_WO_SECTION" => "Y",
"SECTION_URL" => "",
"DETAIL_URL" => "# SITE_DIR#/shop/product/index.php?PARENT_ELEMENT_ID=#SECTION_ID#&ELEMENT_ID=#ID#",
"BASKET_URL"=> "/personal/basket.php",
"ACTION_VARIABLE" => "action",
"PRODUCT_ID_VARIABLE" => "id",
"PRODUCT_QUANTITY_VARIABLE" => "quantity",
"ADD_PROPERTIES_TO_BASKET" => "Y",
"PRODUCT_PROPS_VARIABLE" => "prop",
"PARTIAL_PRODUCT_PROPERTIES" => "N",
"SECTION_ID_VARIABLE" => "SECTION_ID",
"ADD_SECTIONS_CHAIN" => "Y",
"DISPLAY_COMPARE" => "N",
"SET_TITLE" => "Y",
"SET_BROWSER_TITLE" => "Y",
"BROWSER_TITLE" => "-",
"SET_META_KEYWORDS" => "Y",
"META_KEYWORDS" => "",
"SET_META_DESCRIPTION" => "Y",
"META_DESCRIPTION " => "",
"SET_LAST_MODIFIED" => "Y",
"USE_MAIN_ELEMENT_SECTION" => "Y",
"SET_STATUS_404" => "Y",
"PAGE_ELEMENT_COUNT" => "15",
"LINE_ELEMENT_COUNT" => "15",
"PROPERTY_CODE" => array("","ARTICUL","VID","HEIGHT","WIDTH","IMG1","IMG10","IMG11","IMG12","IMG13","IMG14", "IMG15","IMG2","IMG3","IMG4","IMG5","IMG6","IMG7","IMG8","IMG9","KOMPLEKT","KREPLENIE","BESTPRICE","MAT ","INMAIN","OPISANIE","PROIZ","SOSTAV","YXOD","FORMA","COLOR",""),
"OFFERS_FIELD_CODE" => array(),
"OFFERS_PROPERTY_CODE" => array( ),
"OFFERS_SORT_FIELD" => "sort",
"OFFERS_SORT_ORDER" =>"asc",
"OFFERS_SORT_FIELD2" => "active_from",
"OFFERS_SORT_ORDER2" => "desc",
"OFFERS_LIMIT" => "15",
"BACKGROUND_IMAGE" => "-",
"PRICE_CODE" => array(),
" USE_PRICE_COUNT" => "Y",
"SHOW_PRICE_COUNT" => "1",
"PRICE_VAT_INCLUDE" => "Y",PRICE_CODE" => array(), "USE_PRICE_COUNT" => "Y", "SHOW_PRICE_COUNT" => "1", "PRICE_VAT_INCLUDE" => "Y",PRICE_CODE" => array(), "USE_PRICE_COUNT" => "Y", "SHOW_PRICE_COUNT" => "1", "PRICE_VAT_INCLUDE" => "Y",
"PRODUCT_PROPERTIES" => array(),
"USE_PRODUCT_QUANTITY" => "Y",
"CACHE_TYPE" => "A",
"CACHE_TIME" => "36000000",
"CACHE_FILTER" => "Y",
"CACHE_GROUPS" => "Y",
"DISPLAY_TOP_PAGER" => "N",
"DISPLAY_BOTTOM_PAGER" => "Y",
"PAGER_TITLE" => "Products",
"PAGER_SHOW_ALWAYS" => "Y",
"PAGER_TEMPLATE" => "",
"PAGER_DESC_NUMBERING " => "N",
"PAGER_DESC_NUMBERING_CACHE_TIME" => "36000",
"PAGER_SHOW_ALL" => "N",
"HIDE_NOT_AVAILABLE" => "Y",
"OFFERS_CART_PROPERTIES" => array(),
"AJAX_OPTION_JUMP" => "N",
"AJAX_OPTION_STYLE" => "Y",
"AJAX_OPTION_HISTORY" => "N",
"CONVERT_CURRENCY" => "Y",
"CURRENCY_ID" => "RUB",
"ADD_TO_BASKET_ACTION" => "ADD",
"PAGER_BASE_LINK_ENABLE" => "Y",
"SHOW_404" => "Y",
"MESSAGE_404" => "",
"PAGER_BASE_LINK" => "",
"PAGER_PARAMS_NAME" => "arrPager",
"COMPONENT_TEMPLATE" => "catalogtextile",
"TEMPLATE_THEME" => "blue",
"LABEL_PROP" => "-",
"MESS_BTN_COMPARE" => "Compare",
"AJAX_OPTION_ADDITIONAL" => "",
"FILE_404" => ""
)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question