Добро пожаловать на сайт <БагБД>, где вы можете задавать вопросы о программировании и разработке на Битрикс и Битрикс24, и получать быстрые и квалифицированные ответы от профессионалов!

Сортировка не работает

00 голосов
1
Добрый день, у меня сортировка вообще не реагирует, как так?

Вот код:

Код
<?$APPLICATION->IncludeComponent("bitrix:catalog", ".default", array(
   "IBLOCK_TYPE" => "1c_catalog",
   "IBLOCK_ID" => "9",
   "BASKET_URL" => "/personal/cart/",
   "ACTION_VARIABLE" => "action",
   "PRODUCT_ID_VARIABLE" => "id",
   "SECTION_ID_VARIABLE" => "SECTION_ID",
   "SEF_MODE" => "Y",
   "SEF_FOLDER" => "/catalog/products/",
   "AJAX_MODE" => "N",
   "AJAX_OPTION_SHADOW" => "Y",
   "AJAX_OPTION_JUMP" => "N",
   "AJAX_OPTION_STYLE" => "Y",
   "AJAX_OPTION_HISTORY" => "N",
   "CACHE_TYPE" => "A",
   "CACHE_TIME" => "36000000",
   "CACHE_FILTER" => "N",
   "CACHE_GROUPS" => "Y",
   "SET_TITLE" => "Y",
   "SET_STATUS_404" => "Y",
   "USE_FILTER" => "Y",
   "FILTER_NAME" => "",
   "FILTER_FIELD_CODE" => array(
      0 => "NAME",
      1 => "",
   ),
   "FILTER_PROPERTY_CODE" => array(
      0 => "",
      1 => "SPECIALOFFER",
      2 => "NEWPRODUCT",
      3 => "SALELEADER",
      4 => "ARTNUMBER",
      5 => "",
   ),
   "FILTER_PRICE_CODE" => array(
      0 => "2_Розничная",
   ),
   "USE_REVIEW" => "N",
   "USE_COMPARE" => "Y",
   "COMPARE_NAME" => "CATALOG_COMPARE_LIST",
   "COMPARE_FIELD_CODE" => array(
      0 => "PREVIEW_TEXT",
      1 => "DETAIL_PICTURE",
      2 => "",
   ),
   "COMPARE_PROPERTY_CODE" => array(
      0 => "",
      1 => "NEWPRODUCT",
      2 => "SIZE",
      3 => "S_SIZE",
      4 => "ARTNUMBER",
      5 => "MATERIAL",
      6 => "MANUFACTURER",
      7 => "",
   ),
   "DISPLAY_ELEMENT_SELECT_BOX" => "N",
   "ELEMENT_SORT_FIELD_BOX" => "PROPERTY_CML2_ARTICLE",  <- !!!!!!!!!!!!!!!!!!!!!!
   "ELEMENT_SORT_ORDER_BOX" => "desc",  <- !!!!!!!!!!!!!!!!!!!!!!
   "COMPARE_ELEMENT_SORT_FIELD" => "PROPERTY_CML2_ARTICLE",  <- !!!!!!!!!!!!!!!!!!!!!!
   "COMPARE_ELEMENT_SORT_ORDER" => "desc",  <- !!!!!!!!!!!!!!!!!!!!!!
   "PRICE_CODE" => array(
      0 => "2_Розничная",
   ),
   "USE_PRICE_COUNT" => "N",
   "SHOW_PRICE_COUNT" => "1",
   "PRICE_VAT_INCLUDE" => "Y",
   "PRICE_VAT_SHOW_VALUE" => "N",
   "SHOW_TOP_ELEMENTS" => "N",
   "PAGE_ELEMENT_COUNT" => "20",
   "LINE_ELEMENT_COUNT" => "1",
   "ELEMENT_SORT_FIELD" => "PROPERTY_CML2_ARTICLE",  <- !!!!!!!!!!!!!!!!!!!!!!
   "ELEMENT_SORT_ORDER" => "desc",  <- !!!!!!!!!!!!!!!!!!!!!!
   "LIST_PROPERTY_CODE" => array(
      0 => "CML2_ARTICLE",
      1 => "NEWPRODUCT",
      2 => "SPECIALOFFER",
      3 => "SALELEADER",
      4 => "",
   ),
   "INCLUDE_SUBSECTIONS" => "Y",
   "LIST_META_KEYWORDS" => "-",
   "LIST_META_DESCRIPTION" => "-",
   "LIST_BROWSER_TITLE" => "-",
   "DETAIL_PROPERTY_CODE" => array(
      0 => "",
      1 => "SIZE",
      2 => "S_SIZE",
      3 => "ARTNUMBER",
      4 => "MATERIAL",
      5 => "MANUFACTURER",
      6 => "MORE_PHOTO",
      7 => "RECOMMEND",
      8 => "",
   ),
   "DETAIL_META_KEYWORDS" => "-",
   "DETAIL_META_DESCRIPTION" => "-",
   "DETAIL_BROWSER_TITLE" => "-",
   "LINK_IBLOCK_TYPE" => "",
   "LINK_IBLOCK_ID" => "",
   "LINK_PROPERTY_SID" => "",
   "LINK_ELEMENTS_URL" => "link.php?PARENT_ELEMENT_ID=#ELEMENT_ID#",
   "USE_ALSO_BUY" => "Y",
   "ALSO_BUY_ELEMENT_COUNT" => "3",
   "ALSO_BUY_MIN_BUYES" => "2",
   "DISPLAY_TOP_PAGER" => "N",
   "DISPLAY_BOTTOM_PAGER" => "Y",
   "PAGER_TITLE" => "Товары",
   "PAGER_SHOW_ALWAYS" => "N",
   "PAGER_TEMPLATE" => "arrows",
   "PAGER_DESC_NUMBERING" => "N",
   "PAGER_DESC_NUMBERING_CACHE_TIME" => "36000000",
   "PAGER_SHOW_ALL" => "N",
   "AJA
спросил 07 Дек, 13 от Arronaks (480 баллов)

1 Ответ

00 голосов
народ не спим :)
ответил 08 Фев, 14 от Arronaks (480 баллов)

Похожие вопросы

0 голосов
4 ответов
спросил 01 Фев, 14 от JiKiPw (100 баллов)
0 голосов
5 ответов
0 голосов
4 ответов
спросил 28 Ноя, 13 от mrUhauma (320 баллов)
0 голосов
1 ответ