29, 30, 31, 32, 33, 34, 35, 36, 37, 39);
$IBLOCK_ID_PLATFORM = array(25, 26);
$arFilter = array("IBLOCK_ID" => $IBLOCK_ID_PART);
$arSelect = array("ID", "NAME", "PROPERTY_PROPERTY", "PROPERTY_COMPATIBILITY");
$res = CIBlockElement::GetList(Array(), $arFilter, false, false, $arSelect);
while ($ob = $res->GetNextElement()) {
$arFields = $ob->GetFields();
$arFilter_platform = array("IBLOCK_ID" => $IBLOCK_ID_PLATFORM);
$arSelect_platform = array("NAME", "CODE", "ID", "PROPERTY_".$arFields['PROPERTY_PROPERTY_VALUE']);
$res_platform = CIBlockElement::GetList(Array(), $arFilter_platform, false, false, $arSelect_platform);
while ($ob_platform = $res_platform->GetNextElement()) {
$arFields_platform = $ob_platform->GetFields();
echo "<pre>";
print_r($arFields_platform);
echo "</pre>";
}
}
Без "PROPERTY_".$arFields['PROPERTY_PROPERTY_VALUE'] в arSelect все ок, страница отрисовывается
в $arSelect/$arSelect_platform IBLOCK_ID надо добавить?)
Обсуждают сегодня