Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question