Answer the question
In order to leave comments, you need to log in
Bitrix sorting by width and length?
Guys how do I sort the list of items by width and length.
And how to output the minimum and maximum length of an element from the entire section?
The second day I struggle with the task, I don’t understand (((I
use getlist, but it sorts only by weight.
https://dev.1c-bitrix.ru/api_help/iblock/classes/c...
Answer the question
In order to leave comments, you need to log in
Also what on CATALOG_WIDTH does not sort perhaps?
In general, you have the width and length not written there. The width and length of the product (namely, you need to sort by them, as I understand it) must be specified in its properties. Those. create the width and length properties of the IB element and sort by them.
The fields on the screen are the characteristics of the GOODS, not the product, which is why they are in the trade catalog, and not in the IB directly.
If it is not clear what the difference is, then the product is what you sell, and the product is what the buyer wants to have. Why is it important to have dimensions separately specified for the product and product? Well, for example, because if we say this is a cabinet, then what is important for the buyer is what width this cabinet has (whether it will fit into a niche, for example), and for the seller and the delivery person, what is important is the width of the package in which the disassembled cabinet is packed (because it is they who will ship it in the car for delivery), but they can be in the case of a closet, oh, how different.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question