I
I
Ivan Kondratiev2016-07-05 16:04:44
1C-Bitrix
Ivan Kondratiev, 2016-07-05 16:04:44

How to pull all products from all sections by a specific property in bitrix?

I broke my head and decided to write all the same here.
There is an infoblock "catalog" with goods that are divided into categories. Each product has an additional property BRAND.
Question:
How to display the entire list of brands with the quantity of goods with this brand /
Example
adidas (234) , nike(23)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman, 2016-07-05
@inik23

CIBlockElement::GetList , pass an array of the following form in the grouping argument arGroupBy:

array(
'PROPERTY_BRAND' // Где BRAND это код свойсва "БРЕНД"
)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question