function GetInfoByProduct($ARTICLE) { $rsProducts = CCatalog::GetList(array(),array('CML2_ARTICLE'=> $ARTICLE),false,false,array("")); $arRes = $rsProducts->Fetch(); print_r($arRes); }
$res = CIBlockElement::GetList( array(), array('IBLOCK_ID' => 27), false, false, array("*")); while($ob = $res->GetNextElement()) { $arFields = $ob->GetFields(); print_r($arFields); }
$res = CIBlockElement::GetList(array(),array('IBLOCK_ID' => 27)); while($ob = $res->GetNextElement()){ $arFields = $ob->GetFields(); print_r($arFields); }