V
V
Vasily Ivanov2019-07-22 10:32:56
1C-Bitrix
Vasily Ivanov, 2019-07-22 10:32:56

How to set up a product list on Bitrix so that products with a certain word are displayed first?

How can I set up a list of displayed products in the Birtiks online store in a specific subdirectory so that products containing the word X or the phrase XY are displayed at the beginning of the list?
More details please).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2019-08-01
Madzhugin @Suntechnic

Read more here on the book.
If you need the simplest solution in the forehead, then make 2 components on the page - one will filter products by the presence of the word X and display only them, and the other will filter products by its absence and display them below. All.
But no end-to-end pagination and all products on one page.
Any options are more complicated - this is a more detailed immersion in the topic and the development of not even a component, but a set of measures for sorting goods.
For example, how many of these X's do you have? If a little, then you can stick properties that will be alternative sortings and fill them in automatically through hooks when saving products.
If a lot ... well, then you have to think. You may have to write some kind of your own component that will somehow implement pagination in a special way and retrieve all the products at each step.
In short, for a more detailed dive into the topic, you need to know how many products, what we want from these sortings, how many words and how we will work with pagination.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question