A
A
Alexander Chibilyaev2016-01-24 17:41:52
PHP
Alexander Chibilyaev, 2016-01-24 17:41:52

How to sort by price in the filter?

How to sort by price in the Bitrix filter? The getlist method is used: CIBlockElement::GetList(Array("SORT"=>"ASC", "PROPERTY_PRIORITY"=>"ASC"), $arFilter, false, Array("nPageSize"=>15), $arSelect);
Products are displayed in filter.php
How can I make it filter by price (ascending, descending)?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2016-01-24
@AAChibilyaev

Like this
If you're too lazy ,
then read this

R
Rad1calDreamer, 2016-01-25
@Rad1calDreamer

CIBlockElement - does not know the price. this is the iblock class, prices in the trade catalog

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question