M
M
MaxEpt2021-04-07 17:06:00
1C-Bitrix
MaxEpt, 2021-04-07 17:06:00

How to sort the list in Bitrix in the product catalog by availability in several warehouses?

Hello! Is it possible in Bitrix to sort the list of goods by the balance in several warehouses?
We looked in the direction of transmission as the ELEMENT_SORT_FIELD parameter CATALOG_STORE_AMOUNT_.
But only two warehouses can be passed this way (the second one in ELEMNT_SORT_FIELD2), is it possible to pass an array of warehouses for sorting?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Gritsuk, 2021-04-07
@winer

How do you imagine such sorting in SQL?
Create a property in the catalog IB. In it, using the handler, summarize the available quantity of goods from the warehouses you need.
And already by this property, sort in the catalog.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question