Answer the question
In order to leave comments, you need to log in
How to disable sorting of goods in Bitrix?
Hello! The task was to ensure that on the pages with goods, the goods were in certain places. There is an array of goods with the required id, where the keys 1,2,3.. are the positions of the goods on the page. There are 30 products on the page, there are 300 products in total, and you need to make sure that the product with the key 31 is the first one on the 2nd page, 300 is the last one on the last page, etc. Sorting by id, properties, etc. unsuitable. Is it possible to solve this problem with regular functions without accessing the database directly?
In getlist , sorting uses the default value if null or an invalid sort is passed.
Answer the question
In order to leave comments, you need to log in
if only through orm to do: order by field (), in the ancient getlists there is no such thing.
and if you are sure that the goods in your array are definitely in the database, cut page by page through array_slice, what is the problem then .. who knows where you got this array
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question