Answer the question
In order to leave comments, you need to log in
Is it possible to do sorting using only catalog.section without using the complex "catalog" component?
Is it possible to do sorting directly in catalog.section without using complex "catalog" component?
sorting by price occurs without problems through the number specified in section.php
<?if ($_GET["sort"] == "price")
{
$arParams["ELEMENT_SORT_FIELD"] = "catalog_PRICE_3";
}
if ($_GET["order"] == "vozvr") $arParams["ELEMENT_SORT_ORDER"]= "asc";
if ($_GET["order"] == "ubiv") $arParams["ELEMENT_SORT_ORDER"]= "desc";
?>
<div >Сортировать по цене: <a href="?sort=price&order=ubiv">по убыв.</a> | <a href="?sort=price&order=vozvr">по возвр.</a></div>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question