A
A
Alexander2017-05-22 18:50:52
PHP
Alexander, 2017-05-22 18:50:52

How to sort elements in the Bitrix filter?

Such a situation: there is a catalog with a smart filter, the products in it are sorted by the "sort" field. Accordingly, all filter results are sorted in the same way as in the section. Is it possible to have certain filter results sorted by another specific field?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Emelyanov, 2017-05-22
@babarun

Is it possible to have certain filter results sorted by another specific field?
- explain.
In general, you can change the sorting with certain filter parameters.

M
Maxim Pavlov, 2017-05-22
@Ifelseapps

You can change the sort field dynamically via the SORT parameter when the component is called. I think that it will also not be difficult to determine the selected properties in the filter. Well, then change the sorting parameter depending on what is selected in the filter.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question