I
I
Ilya Voropaev2019-01-17 21:13:40
1C-Bitrix
Ilya Voropaev, 2019-01-17 21:13:40

How to make a unique sorting of goods for each section of the catalog in Bitrix?

Site on Bitrix.
There is a catalog of about 2000 products and about 400 sections, many of which are of the same type and created for SEO.
It is necessary to make a unique sorting of goods in each section, despite the fact that the sections may be identical in composition.
Problem - 2000*400 gives 800k sorting options. Even if you take into account that not all products will be in all sections, you still get about 100k unique options for sorting goods.
How best to implement and store it, and at the same time, so that it is convenient to edit it in the admin panel.
So far, only type options come to mind - for the product we make a multiple field "binding to the section" and for each tied in the "comment" field we write the sort value.
But it looks like a crutch.
Can eat some more optimal variant, type, to set to each section a certain factor which influences sorting in the section?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
Georgy Baruchyan, 2019-01-18
@SV0L0Ch

If you want each section to have its own sort, and it is constant for a given section, consider adding a section property that will store the sort value. And when connecting a selection of section elements, use this property

I
Ilya, 2019-01-17
@jasper-blondin

"SORT_BY1" => "rand",
"SORT_ORDER1" => "ASC"

Uniqueness is not guaranteed. But it produces a random sort.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question