Y
Y
Yuriy2018-09-07 12:52:22
1C-Bitrix
Yuriy, 2018-09-07 12:52:22

Bitrix catalog.section filter for all sections?

Is it possible to make a filter for all sections in the catalog.section component? those. to deduce we will tell all goods on certain properties?

<?
$GLOBALS[$arParams["CATALOG_FILTER_NAME"]] = array( "PROPERTY_".$arParams["LINKED_PRODUCTS_PROPERTY"] => $arResult["ID"] )
//arrFilter output: { ["PROPERTY_BRAND"]=> string(5) "11386" }
?>

<?$APPLICATION->IncludeComponent(
  "bitrix:catalog.section", 
  "main", 
  array( ....

displays that the section is empty.
I leave SECTION_ID and SECTION_CODE empty, because the goods are not known in which section,
I did it through catalog.top , it displays everything is fine, but it displays a limited number, you need all products + pagination

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
kafeuri1989, 2018-09-07
@yous

There is a parameter - take into account nested subsections
"SECTION_ID" => "",
...
"SHOW_ALL_WO_SECTION" => "Y",

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question