A
A
anton_myaso2016-08-31 19:52:22
1C-Bitrix
anton_myaso, 2016-08-31 19:52:22

How to sort goods in Bitrix by value, not by the first digit?

The question is. There are many products on the site with an initial number. easier - face value.
1, 2, 3, 10, 100.
Bitrix, by default, sorts as: 1, 10, 100, and then 2, 3, etc.
How to do it by number, and not by the first character?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Gorokhov, 2016-08-31
@gorokhov_dv

Create a numeric field for products, set the denomination value in this field for all products (preferably with a script, and put an event handler for creating and changing products for automatic filling) and set this property as the second field for sorting.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question