E
E
Eugene M2021-08-02 21:51:01
1C-Bitrix
Eugene M, 2021-08-02 21:51:01

How to display the IB property inside another IB in Bitrix?

I use this method from the documentation, everything seems to be correct, but it is not displayed.

<?
$elements = [];
$order = ['SORT' => 'ASC'];
$filter = ['IBLOCK_ID' => 27];
$rows = CIBlockElement::GetList($order, $filter);
while ($row = $rows->fetch()) {
    $row['PROPERTIES'] = ["LINK_TOVAR"];
    $elements[$row['ID']] =& $row;
    unset($row);
}
CIBlockElement::GetPropertyValuesArray($elements, $filter['IBLOCK_ID'], $filter);
unset($rows, $filter, $order);
?>
<?=$arResult["PROPERTIES"]["LINK_TOVAR"]["VALUE"];?>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question