D
D
Darklt2019-04-29 13:16:47
1C-Bitrix
Darklt, 2019-04-29 13:16:47

How to output GetPropertyValues ​​in result_modifer and template?

It is necessary to display the property of the element BXR_PRICE and BXR_PRICE2
I write in result:
$iterator = CIBlockElement::GetPropertyValues(48, array('ACTIVE' => 'Y'), true, array('CODE' => array(BXR_PRICE, BXR_PRICE_2)) );
while ($row = $iterator->Fetch())
{
print_r($row);
}
Doesn't work, and how to display it in template? Thanks a lot

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Goncharov, 2019-04-29
@agmegadeth

How to display in template:
In your code:

while ($row = $iterator->Fetch())
{
$arResult['SOMESHIT'][] = $row;
}

In template.php look for About not working - there may be in quotes you need the names of the parameters then. Even in the docks it is written that in the 4th parameter there can only be an ID, but you have a CODE.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question