Answer the question
In order to leave comments, you need to log in
How to set a filter?
You need to filter only products of certain sections. These sections have up to 4 levels of nesting. The filter without SECTION_ID includes sections from other sections, but they have only 2 levels of nesting.
Those. i need or something
$cat = CIBlockSection::GetList(
[],
["!SECTION_ID" => "1673|6044|6041|6022", "ELEMENT_SUBSECTIONS" => "N", "CNT_ACTIVE" => "Y"],
true,
['ID', 'NAME', 'ELEMENT_CNT'],
false
);
But in this case, only the check for 1673 works. Answer the question
In order to leave comments, you need to log in
The filter without SECTION_ID includes sections from other sections
Array
(
"LOGIC" => "OR",
Array([SECTION_ID] => 111),
Array([SECTION_ID] => 222),
)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question