Добрый день. Хочу вывести товары по акции на странице с акциями. Выставляю, чтобы отображалось по 50 товаров в "PAGE_ELEMENT_COUNT" => "50". Хотя товаров 250. В общем, не работает пагинация и в массиве $arResult['ITEMS'] только 50шт. вместо 250. Что я делаю не так. Как сделать, чтобы работала пагинация?
$arFilterSales = [
'PROPERTY' => [
'AKCYA' => 299,
//'AKCYA_VALUE' => 'Y',
],
// 'PROPERTY_AKCYA_VALUE' => 'Да',
];
$arParams = [
"HIDE_NOT_AVAILABLE" => "Y",
"HIDE_NOT_AVAILABLE_OFFERS" => "Y",
"IBLOCK_ID" => $arParams["SECTION_ID"],
"IBLOCK_TYPE" => "1c_catalog",
"TOP_ELEMENT_SORT_FIELD" => "sort",
"TOP_ELEMENT_SORT_FIELD2" => "SCALED_PRICE_1",
"TOP_ELEMENT_SORT_ORDER" => "asc",
"TOP_ELEMENT_SORT_ORDER2" => "desc",
"SET_LAST_MODIFIED" => "N",
"INCLUDE_SUBSECTIONS" => "Y",
"BASKET_URL" => "/cart/",
"ACTION_VARIABLE" => "action",
"FILTER_NAME" => "arFilterSales",
"CACHE_TYPE" => "A",
"CACHE_TIME" => "36000000",
"CACHE_FILTER" => "N",
"CACHE_GROUPS" => "Y",
"SET_TITLE" => "Y",
"SHOW_404" => "Y",
"SET_STATUS_404" => "Y",
"PAGE_ELEMENT_COUNT" => "50",
"LINE_ELEMENT_COUNT" => "3",
"PRICE_CODE" => array(
0 => "BASE",
),
"USE_PRICE_COUNT" => "N",
"SHOW_PRICE_COUNT" => "1",
"PRICE_VAT_INCLUDE" => "Y",
"USE_PRODUCT_QUANTITY" => "N",
"ADD_PROPERTIES_TO_BASKET" => "Y",
"PARTIAL_PRODUCT_PROPERTIES" => "N",
"DISPLAY_TOP_PAGER" => "Y",
"DISPLAY_BOTTOM_PAGER" => "Y",
"BROWSER_TITLE" => "Товары",
"PAGER_SHOW_ALWAYS" => "Y",
"PAGER_TEMPLATE" => ".default",
"PAGER_DESC_NUMBERING" => "N",
"PAGER_DESC_NUMBERING_CACHE_TIME" => "36000",
"PAGER_SHOW_ALL" => "N",
"PAGER_BASE_LINK_ENABLE" => "N",
"LAZY_LOAD" => "N",
"LOAD_ON_SCROLL" => "N",
"SHOW_ALL_WO_SECTION" => "Y",
"SEF_MODE" => "Y",
"SEF_FOLDER" => "/sales/",
"SEF_URL_TEMPLATES" => array(
"sections" => "/sales/",
"section" => "#SECTION_CODE_PATH#/",
"element" => "#SECTION_CODE_PATH#/#ELEMENT_CODE#/",
"compare" => "compare.php?action=#ACTION_CODE#",
"smart_filter" => "#SECTION_CODE_PATH#/filter/#SMART_FILTER_PATH#/apply/",
),
"SECTION_CODE_PATH" => $_GET['SECTION_CODE_PATH'],
"ADD_SECTIONS_CHAIN" => "Y",
"USE_FILTER" => "Y",
];