M
M
miniven2017-09-01 15:45:25
PHP
miniven, 2017-09-01 15:45:25

How to display the name of the section in the catalog search results?

The situation is this: I did a search for goods in the catalog. The catalog has different sections (sofas, kitchens, etc.). In the template I see the entry:

$rowItems = array_splice($arResult['ITEMS'], 0, $rowData['COUNT']);
and I think that this is how the grouping into sections occurs, well, it seems that elements of one section fall into each ROW, then they are sorted out, then the next ROW. On closer examination, it turned out not to be the case. Tell me, how can I group the elements into sections myself so that I can display the name of the section before each group in the list? Thanks

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question