if (!CModule::IncludeModule("catalog") && !CCatalog::GetByID("3"))
{
ShowError("CATALOG_MODULE_UNAVAILABLE");
return;
}
$arFilter = array("IBLOCK_TYPE" => "catalog", "IBLOCK_ID" => "3",);
$elems = CIBlockElement::GetList(array("NAME"=>"ASC"), $arFilter, false, false, array("ID", "IBLOCK_ID", "NAME", "PROPERTY_ORIGINOMER", "PROPERTY_ANALOGI", "PROPERTY_IZGOTANALOGI", "IBLOCK_SECTION_ID", "DETAIL_PAGE_URL"));
$arElems = array();
while($elem = $elems->GetNextElement())
{
$arFields = $elem->GetFields();
echo '<pre>';
print_r($arFields);
echo '</pre>';
} |