S
S
Superhero_a2019-02-19 03:51:38
Iron
Superhero_a, 2019-02-19 03:51:38

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>

but I use the catalog.section component to display brands. and I don't need a directory there. how can you do this kind of sorting using just catalog.section without a complex component?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Fixid, 2016-08-30
@Fixid

More like a diverted video card chip. Look for any other and repeat the tests.
And of course check your drivers.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question