$arFilter = Array("IBLOCK_ID"=>10, "SECTION_ID"=>'48, 36, 156, 1148, 68, 476, 154', "INCLUDE_SUBSECTIONS" => "Y", "PREVIEW_PICTURE" => false);
<?
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
$APPLICATION->SetTitle("Товары без фото");
require_once($_SERVER['DOCUMENT_ROOT']."/bitrix/modules/main/include/prolog_before.php");
CModule::IncludeModule("iblock");
$arSelect = Array("NAME", "ID", "DETAIL_PAGE_URL", "SECTION_ID");
$arFilter = Array("IBLOCK_ID"=>10, "SECTION_ID"=>'48, 36, 156, 1148, 68, 476, 154', "INCLUDE_SUBSECTIONS" => "Y");
$res = CIBlockElement::GetList(Array("SORT"=>"ASC"), $arFilter, false, Array("nPageSize"=>50), $arSelect);
?>
<div class="container">
<?
$res->NavStart(0);
while($ob = $res->GetNextElement())
{
$arFields = $ob->GetFields();
{?>
<?=$arFields[ID]?> - <a href="<?=$arFields[DETAIL_PAGE_URL]?>"><?=$arFields[NAME]?></a>
- Подраздел №<?=$arFields[IBLOCK_SECTION_ID]?></br>
<?}
}
echo $res->NavPrint();
?>
</div>
<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");?>
$GLOBALS['sukara'] = array('PREVIEW_PICTURE' => false, 'IBLOCK_SECTION_ID' => '476');
$APPLICATION->IncludeComponent(
"bitrix:catalog.top",
"",
Array(
"INCLUDE_SUBSECTIONS" => "Y",
"ACTION_VARIABLE" => "action",
"ADD_PICT_PROP" => "-",
"ADD_PROPERTIES_TO_BASKET" => "Y",
"ADD_TO_BASKET_ACTION" => "ADD",
"BASKET_URL" => "/personal/basket.php",
"CACHE_FILTER" => "N",
"CACHE_GROUPS" => "Y",
"CACHE_TIME" => "36000000",
"CACHE_TYPE" => "A",
"COMPARE_NAME" => "CATALOG_COMPARE_LIST",
"COMPATIBLE_MODE" => "Y",
"CONVERT_CURRENCY" => "N",
"DETAIL_URL" => "",
"DISPLAY_COMPARE" => "N",
"ELEMENT_COUNT" => "9",
"ELEMENT_SORT_FIELD" => "sort",
"ELEMENT_SORT_FIELD2" => "id",
"ELEMENT_SORT_ORDER" => "asc",
"ELEMENT_SORT_ORDER2" => "desc",
"ENLARGE_PRODUCT" => "STRICT",
"FILTER_NAME" => "sukara",
"HIDE_NOT_AVAILABLE" => "N",
"HIDE_NOT_AVAILABLE_OFFERS" => "N",
"IBLOCK_ID" => "10",
"IBLOCK_TYPE" => "1c_catalog",
"LABEL_PROP" => array(),
"LINE_ELEMENT_COUNT" => "3",
"MESS_BTN_ADD_TO_BASKET" => "В корзину",
"MESS_BTN_BUY" => "Купить",
"MESS_BTN_COMPARE" => "Сравнить",
"MESS_BTN_DETAIL" => "Подробнее",
"MESS_NOT_AVAILABLE" => "Нет в наличии",
"OFFERS_LIMIT" => "5",
"PARTIAL_PRODUCT_PROPERTIES" => "N",
"PRICE_CODE" => array(),
"PRICE_VAT_INCLUDE" => "Y",
"PRODUCT_BLOCKS_ORDER" => "price,props,sku,quantityLimit,quantity,buttons,compare",
"PRODUCT_ID_VARIABLE" => "id",
"PRODUCT_PROPERTIES" => array(),
"PRODUCT_PROPS_VARIABLE" => "prop",
"PRODUCT_QUANTITY_VARIABLE" => "quantity",
"PRODUCT_ROW_VARIANTS" => "[{'VARIANT':'2','BIG_DATA':false},{'VARIANT':'2','BIG_DATA':false},{'VARIANT':'2','BIG_DATA':false}]",
"PRODUCT_SUBSCRIPTION" => "Y",
"PROPERTY_CODE" => array("",""),
"PROPERTY_CODE_MOBILE" => array(),
"SECTION_URL" => "",
"SEF_MODE" => "N",
"SHOW_CLOSE_POPUP" => "N",
"SHOW_DISCOUNT_PERCENT" => "N",
"SHOW_MAX_QUANTITY" => "N",
"SHOW_OLD_PRICE" => "N",
"SHOW_PRICE_COUNT" => "1",
"SHOW_SLIDER" => "Y",
"SLIDER_INTERVAL" => "3000",
"SLIDER_PROGRESS" => "N",
"TEMPLATE_THEME" => "blue",
"USE_ENHANCED_ECOMMERCE" => "N",
"USE_PRICE_COUNT" => "N",
"USE_PRODUCT_QUANTITY" => "N",
"VIEW_MODE" => "SECTION"
)
);
$arFilter = Array("IBLOCK_ID"=>$IBLOCK_ID, "SECTION_ID" => $SECTION_ID, "ACTIVE_DATE"=>"Y", "ACTIVE"=>"Y", "INCLUDE_SUBSECTIONS"=>"Y",); // Указываем параметры фильтра, по которым будем выводить элементы
$res = CIBlockElement::GetList(Array("SORT"=>"ASC"), $arFilter, false, array("nPageSize" => 10), $arSelect); // Вызов