V
V
Vadim Timoshenko2020-09-04 18:23:06
1C-Bitrix
Vadim Timoshenko, 2020-09-04 18:23:06

How to get the value of an element's multiple property?

There is a multiple property "region". In which you can select several cities.
I found an example of displaying a property value here: https://dev.1c-bitrix.ru/api_help/iblock/classes/c...

The code works successfully:

$db_props = CIBlockElement::GetProperty($arItem['IBLOCK_ID'], $arItem['ID'], "sort", "asc", array());

  $PROPS = array();

  while( $ar_props = $db_props->GetNext() )
    $PROPS[$ar_props['CODE']] = $ar_props['VALUE_ENUM'];


..but outputs only the last value of the multiple property.

The example above uses the IKSO_CUSTOM:: class. But when I add this class I get an error:

[Error] 
Class 'IKSO_CUSTOM' not found (0)..


How to be?

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