Для вывода нескольких товаров из различных разделов с использованием "Умного фильтра" и функции catalog.section вам нужно использовать массивы ID элементов и ID их разделов в параметре " Условия выборки" массива $arrFilterId.
Пример кода:
```php
<?if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?>
<?
$GLOBALS['arrFilterId'] = array(1, 2, 3); // Массив ID элементов
$arResult['VARIABLES']['SECTION_ID'] = array(4, 5, 6); // Массив ID разделов
$APPLICATION->IncludeComponent(
"bitrix:catalog.section",
"",
Array(
"IBLOCK_TYPE" => $arParams["IBLOCK_TYPE"],
"IBLOCK_ID" => $arParams["IBLOCK_ID"],
"SECTION_ID" => "",
"SECTION_CODE" => "",
"SECTION_USER_FIELDS" => array(),
"SECTION_USER_FIELDS" => array("UF_FIELD"),
"ELEMENT_SORT_FIELD" => $arParams["ELEMENT_SORT_FIELD"],
"ELEMENT_SORT_ORDER" => $arParams["ELEMENT_SORT_ORDER"],
"ELEMENT_SORT_FIELD2" => $arParams["ELEMENT_SORT_FIELD2"],
"ELEMENT_SORT_ORDER2" => $arParams["ELEMENT_SORT_ORDER2"],
"FILTER_NAME" => "arrFilterId",
"INCLUDE_SUBSECTIONS" => "Y",
"SHOW_ALL_WO_SECTION" => "Y",
"PAGE_ELEMENT_COUNT" => 10,
"LINE_ELEMENT_COUNT" => $arParams["LINE_ELEMENT_COUNT"],
"PROPERTY_CODE" => $arParams["LIST_PROPERTY_CODE"],
"OFFERS_FIELD_CODE" => $arParams["LIST_OFFERS_FIELD_CODE"],
"OFFERS_PROPERTY_CODE" => $arParams["LIST_OFFERS_PROPERTY_CODE"],
"OFFERS_SORT_FIELD" => $arParams["OFFERS_SORT_FIELD"],
"OFFERS_SORT_ORDER" => $arParams["OFFERS_SORT_ORDER"],
"OFFERS_SORT_FIELD2" => $arParams["OFFERS_SORT_FIELD2"],
"OFFERS_SORT_ORDER2" => $arParams["OFFERS_SORT_ORDER2"],
"PRICE_CODE" => $arParams["PRICE_CODE"],
"USE_PRICE_COUNT" => $arParams["USE_PRICE_COUNT"],
"SHOW_PRICE_COUNT" => $arParams["SHOW_PRICE_COUNT"],
"PRICE_VAT_INCLUDE" => $arParams["PRICE_VAT_INCLUDE"],
"USE_PRODUCT_QUANTITY" => $arParams["USE_PRODUCT_QUANTITY"],
"PRODUCT_PROPERTIES" => $arParams["PRODUCT_PROPERTIES"],
"DISPLAY_TOP_PAGER" => $arParams["DISPLAY_TOP_PAGER"],
"DISPLAY_BOTTOM_PAGER" => $arParams["DISPLAY_BOTTOM_PAGER"],
"PAGER_TITLE" => $arParams["PAGER_TITLE"],
"PAGER_SHOW_ALWAYS" => $arParams["PAGER_SHOW_ALWAYS"],
"PAGER_TEMPLATE" => $arParams["PAGER_TEMPLATE"],
"PAGER_DESC_NUMBERING" => $arParams["PAGER_DESC_NUMBERING"],
"PAGER_DESC_NUMBERING_CACHE_TIME" => $arParams["PAGER_DESC_NUMBERING_CACHE_TIME"],
"PAGER_SHOW_ALL" => $arParams["PAGER_SHOW_ALL"],
"OFFERS_CART_PROPERTIES" => $arParams["OFFERS_CART_PROPERTIES"],
"AJAX_MODE" => $arParams["AJAX_MODE"],
"AJAX_OPTION_JUMP" => $arParams["AJAX_OPTION_JUMP"],
"AJAX_OPTION_STYLE" => $arParams["AJAX_OPTION_STYLE"],
"AJAX_OPTION_HISTORY" => $arParams["AJAX_OPTION_HISTORY"],
"CACHE_TYPE" => $arParams["CACHE_TYPE"],
"CACHE_TIME" => $arParams["CACHE_TIME"],
"CACHE_GROUPS" => $arParams["CACHE_GROUPS"],
"SET_TITLE" => $arParams["SET_TITLE"],
"SET_STATUS_404" => $arParams["SET_STATUS_404"],
"DISPLAY_COMPARE" => $arParams["USE_COMPARE"],
"PAGE_ELEMENT_COUNT" => 20,
"LINE_ELEMENT_COUNT" => 4,
),
$component
);
?>
```
В данном примере мы инициализируем массив $arrFilterId с ID элементов (1, 2, 3) и массив $arResult['VARIABLES']['SECTION_ID'] с ID разделов (4, 5, 6). Параметр "FILTER_NAME" устанавливаем в "arrFilterId", что указывает на использование этого массива в качестве условий фильтрации элементов.
Таким образом, при использовании данного кода, вы сможете вы