D
D
drewandrew2020-06-24 23:18:27
1C-Bitrix
drewandrew, 2020-06-24 23:18:27

How to sort the output of goods by groups in the Bitrix catalog?

How to display products in groups in the catalog, in this case, by manufacturer:
5ef3b4fad6992558878882.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yaroslav Alexandrov, 2020-06-25
@alexyarik

Look at the materials for preparing for exam No. 2 of the Bitrix Academy for training, it discusses the issues of expanding the capabilities of the system.
You can write your own component or modify the standard one through result_modifier.
Checklist of your task:
1) iblock sections - getting sections
2) iblock elements - getting elements
3) make an array with grouping of elements (we form the key ID of the section and its elements)
4) Add the resulting grouped list to your resulting array key $arResult
5 ) In the component template, we process and display data as needed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question