S
S
symply_rabbit2019-08-09 02:16:52
1C-Bitrix
symply_rabbit, 2019-08-09 02:16:52

What is the most competent way to sort simultaneously by several parameters in the elements of the section?

What is the most competent way to sort simultaneously by several parameters (for example, by price, by popularity, by id, by novelty) in section elements so that the user presses the "show" button and all sorting types that he has chosen are applied simultaneously?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
symply_rabbit, 2019-08-15
@symply_rabbit

the solution of simultaneous display of sorts was solved by customizing the component. I could not find a solution with the code to the standard Bitrix component.
here is the necessary modification of the standard component
archive.hamdeew.ru/page/bitrixcatalogsection-sorti...

Y
Yaroslav Alexandrov, 2019-08-09
@alexyarik

According to one parameter, this is still sorting, several at the same time it is already a filter
https://dev.1c-bitrix.ru/api_help/iblock/classes/c... Make
a form that accepts user data and send data to the filter by Ajax, for example, this plan:
<? $GLOBALS['arrFilter'] = array('!PROPERTY_data_state' => 'busy', "IBLOCK_TYPE" => "house", 'IBLOCK_ID' => $arr_dom);?>

M
MiXaLiN17, 2019-08-09
@MiXaLiN17

As for sorting, more than two parameters cannot be specified for products. ELEMENT_SORT_FIELD and ELEMENT_SORT_FIELD2 define fields for sorting.

A
Anton, 2019-08-09
@anton99zel

Do you think it is possible to show products by price and popularity at the same time? No way! Or first with a low price, then at the same price popular ...)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question