M
M
Mikhail Smirnov2016-09-10 17:59:47
MySQL
Mikhail Smirnov, 2016-09-10 17:59:47

How to make a selection of goods by sections in bitrix?

Hello!
how to make a selection of goods from sections, for example, there are sections:
Household appliances
-- Refrigerators
-- -- Built-in (6 pcs)
-- -- Stand- alone (8 pcs)
the product has a link to the final category, and already the categories have a link to the parent
as on pure sql to make a query to display the number of products in categories? that is, the result should be like this:
Household appliances - 14pcs
Refrigerators - 14pcs Built
-in 6pcs Stand-alone 8pcs It is not clear how to make a selection for parent categories where there is no direct connection with the product.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Maksimenko, 2016-09-11
@fortoster83

The easiest way is to select all product-section links and calculate in php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question