StartResultCache(60*60*24, md5(var_export($_POST, true)))) { if(CModule::IncludeModule('iblock')) { $arResult = [ 'OFFERS' => [], ]; $sort = [ "SORT" => "ASC" ]; $filter = [ "ACTIVE" => "Y", "IBLOCK_ID" => IBLOCK_ID_SPECIALS, "ID" => $arParams['IDS'] ]; $options = false; $res = CIBlockElement::GetList($sort, $filter, false, $options); while ($element = $res->GetNextElement()) { $ar_res = $element->GetFields(); $ar_res['PROPERTIES'] = $element->GetProperties(); if(isset($ar_res['PREVIEW_PICTURE'])) { $ar_res['PREVIEW_PICTURE'] = CFile::GetPath($ar_res['PREVIEW_PICTURE']); } $arResult['OFFERS'][] = $ar_res; } $this->IncludeComponentTemplate(); } }