F
F
Forspeed2017-03-27 18:30:25
1C-Bitrix
Forspeed, 2017-03-27 18:30:25

Sorting products in the catalog on Bitrix, what's wrong?

Good afternoon.
Please tell me by what logic the output of goods is generated by default in the Bitrix catalog there
is a page to which the component with settings is connected:

<?$APPLICATION->IncludeComponent("demo:catalog.section", "board_checked", array(
  "IBLOCK_TYPE" => "Copco_catalog",
  "IBLOCK_ID" => "18",
  "SECTION_ID" => $_REQUEST["SECTION_ID"],
  "SECTION_CODE" => "",
  "ELEMENT_SORT_FIELD" => "NAME_ARTIC",
  "ELEMENT_SORT_ORDER" => "asc",
  "FILTER_NAME" => "arrFilter",
  "INCLUDE_SUBSECTIONS" => "Y",
  "SHOW_ALL_WO_SECTION" => "N",
  "PAGE_ELEMENT_COUNT" => "20",
  "LINE_ELEMENT_COUNT" => "1",
  "PROPERTY_CODE" => array(
    0 => "COD_ARTIC",
    1 => "CENA_ARTIC",
    2 => "EDN_V_UPAK",
    3 => "VES_EDINIC",
    4 => "EDIN_IZMER",
    5 => "OKDP_ARTIC",
    6 => "",
  ),
  "SECTION_URL" => "",
  "DETAIL_URL" => "/catalog/detail.php?ELEMENT_ID=#ID#&catalog_backurl=".urlencode($_SERVER["REQUEST_URI"]),
  "BASKET_URL" => "/catalog/basket.php",
  "ACTION_VARIABLE" => "action",
  "PRODUCT_ID_VARIABLE" => "id",
  "PRODUCT_QUANTITY_VARIABLE" => "quantity",
  "PRODUCT_PROPS_VARIABLE" => "prop",
  "SECTION_ID_VARIABLE" => "SECTION_ID",
  "AJAX_MODE" => "N",
  "AJAX_OPTION_SHADOW" => "Y",
  "AJAX_OPTION_JUMP" => "N",
  "AJAX_OPTION_STYLE" => "Y",
  "AJAX_OPTION_HISTORY" => "N",
  "CACHE_TYPE" => "N",
  "CACHE_TIME" => "7200",
  "CACHE_GROUPS" => "Y",
  "META_KEYWORDS" => "-",
  "META_DESCRIPTION" => "-",
  "BROWSER_TITLE" => "NAME",
  "DISPLAY_PANEL" => "N",
  "ADD_SECTIONS_CHAIN" => "N",
  "DISPLAY_COMPARE" => "Y",
  "SET_TITLE" => "Y",
  "SET_STATUS_404" => "N",
  "CACHE_FILTER" => "N",
  "PRICE_CODE" => array(
    0 => "BASE",
    1 => "Оптовая",
    2 => "WHOLESALE",
    3 => "Розничная",
    4 => "Плановая",
    5 => "RETAIL",
    6 => "Закупочная",
  ),
  "USE_PRICE_COUNT" => "N",
  "SHOW_PRICE_COUNT" => "1",
  "PRICE_VAT_INCLUDE" => "Y",
  "PRODUCT_PROPERTIES" => array(
  ),
  "USE_PRODUCT_QUANTITY" => "Y",
  "DISPLAY_TOP_PAGER" => "N",
  "DISPLAY_BOTTOM_PAGER" => "Y",
  "PAGER_TITLE" => "Товары",
  "PAGER_SHOW_ALWAYS" => "Y",
  "PAGER_TEMPLATE" => "",
  "PAGER_DESC_NUMBERING" => "N",
  "PAGER_DESC_NUMBERING_CACHE_TIME" => "36000",
  "PAGER_SHOW_ALL" => "N",
  "AJAX_OPTION_ADDITIONAL" => ""
  ),
  false
);?>

parameters
"ELEMENT_SORT_FIELD" => "NAME_ARTIC",
"ELEMENT_SORT_ORDER" => "asc",
are completely ignored, although NAME_ARTIC" is in the iblock_property table,

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question