M
M
MRcracker2021-04-09 03:22:39
1C-Bitrix
MRcracker, 2021-04-09 03:22:39

How to sort the product catalog?

There is a list of goods that I brought out through the ext file. How to sort the items in it and in the dropdown list?

<?
  if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
  global $APPLICATION;
  $aMenuLinksExt=$APPLICATION->IncludeComponent("bitrix:menu.sections", "", array(
  "IS_SEF" => "Y",
  "SEF_BASE_URL" => "/catalog/",
  "SECTION_PAGE_URL" => "#SECTION_CODE_PATH#/",
  "DETAIL_PAGE_URL" => "#SECTION_ID#/#ELEMENT_CODE#.php",
  "IBLOCK_TYPE" => "catalog",
  "IBLOCK_ID" => "4",
  "DEPTH_LEVEL" => "3",
  "CACHE_TYPE" => "A",
  "CACHE_TIME" => "36000000"
  ),
false
);
  $aMenuLinks = array_merge($aMenuLinksExt, $aMenuLinks);
?>

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