Answer the question
In order to leave comments, you need to log in
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
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...
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);?>
As for sorting, more than two parameters cannot be specified for products. ELEMENT_SORT_FIELD and ELEMENT_SORT_FIELD2 define fields for sorting.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question