Answer the question
In order to leave comments, you need to log in
How to display products from several SECTION_IDs in Bitrix?
Please explain in a simple way how to display products from multiple SECTION_IDs. Only very simple, otherwise I'm in Bitrix 0.
there is this code:
<?$APPLICATION->IncludeComponent(
"bitrix:catalog.section",
"3inCol_rsv",
Array(
"COMPONENT_TEMPLATE" => "list",
"IBLOCK_TYPE" => "Catalog",
"IBLOCK_ID" => "5",
"SECTION_ID" => "100",
"SECTION_CODE" => "",
"SECTION_USER_FIELDS" => array(0=>"",1=>"",),
"ELEMENT_SORT_FIELD" => "sort",
"ELEMENT_SORT_ORDER" => "asc",
"ELEMENT_SORT_FIELD2" => "id",
"ELEMENT_SORT_ORDER2" => "desc",
"FILTER_NAME" => "arrFilter",
"INCLUDE_SUBSECTIONS" => "Y",
"SHOW_ALL_WO_SECTION" => "N",
"PAGE_ELEMENT_COUNT" => "30",
"LINE_ELEMENT_COUNT" => "3",
"PROPERTY_CODE" => array(0=>"",1=>"",),
"OFFERS_LIMIT" => "5",
"TEMPLATE_THEME" => "blue",
"MESS_BTN_BUY" => "Купить",
"MESS_BTN_ADD_TO_BASKET" => "В корзину",
"MESS_BTN_SUBSCRIBE" => "Подписаться",
"MESS_BTN_DETAIL" => "Подробнее",
"MESS_NOT_AVAILABLE" => "Нет в наличии",
"SECTION_URL" => "",
"DETAIL_URL" => "",
"SECTION_ID_VARIABLE" => "SECTION_ID",
"AJAX_MODE" => "N",
"AJAX_OPTION_JUMP" => "N",
"AJAX_OPTION_STYLE" => "Y",
"AJAX_OPTION_HISTORY" => "N",
"CACHE_TYPE" => "A",
"CACHE_TIME" => "36000000",
"CACHE_GROUPS" => "Y",
"SET_TITLE" => "N",
"SET_BROWSER_TITLE" => "N",
"BROWSER_TITLE" => "-",
"SET_META_KEYWORDS" => "N",
"META_KEYWORDS" => "-",
"SET_META_DESCRIPTION" => "N",
"META_DESCRIPTION" => "-",
"ADD_SECTIONS_CHAIN" => "N",
"SET_STATUS_404" => "N",
"CACHE_FILTER" => "N",
"ACTION_VARIABLE" => "action",
"PRODUCT_ID_VARIABLE" => "id",
"PRICE_CODE" => array(),
"USE_PRICE_COUNT" => "N",
"SHOW_PRICE_COUNT" => "1",
"PRICE_VAT_INCLUDE" => "Y",
"BASKET_URL" => "/personal/basket.php",
"USE_PRODUCT_QUANTITY" => "N",
"ADD_PROPERTIES_TO_BASKET" => "Y",
"PRODUCT_PROPS_VARIABLE" => "prop",
"PARTIAL_PRODUCT_PROPERTIES" => "N",
"PRODUCT_PROPERTIES" => array(),
"DISPLAY_COMPARE" => "N",
"PAGER_TEMPLATE" => ".default",
"DISPLAY_TOP_PAGER" => "N",
"DISPLAY_BOTTOM_PAGER" => "Y",
"PAGER_TITLE" => "Товары",
"PAGER_SHOW_ALWAYS" => "N",
"PAGER_DESC_NUMBERING" => "N",
"PAGER_DESC_NUMBERING_CACHE_TIME" => "36000",
"PAGER_SHOW_ALL" => "N",
"ADD_PICT_PROP" => "-",
"LABEL_PROP" => "-",
"MESS_BTN_COMPARE" => "Сравнить",
"AJAX_OPTION_ADDITIONAL" => "",
"PRODUCT_QUANTITY_VARIABLE" => "quantity"
)
);?>
Answer the question
In order to leave comments, you need to log in
Simply put, no way. Only "in a complicated way"))
Your component is passed a filter with the name "arrFilter". Most likely, this filter is assembled using the Smart Filter component. So, you need to combine your filter by sections with Smart Filter. Only in this case will it be possible to achieve a result.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question