A
A
Askfortrue2019-11-29 09:26:32
1C-Bitrix
Askfortrue, 2019-11-29 09:26:32

How to set the display of other product properties in the list of your elements (bitrix element add list) except for the name and activity?

Hello!
Here is the task, I tried the options for inserting product properties in the display on the sheet of my elements that I knew -

$arElement["PROPERTIES"] ["Свойство"] ["VALUE"],  а так же $arItem~, $arResult~
,
but nothing works.
Tell me how to add, for example, a preview image (product cover) to the list item, it is not in the properties, but in the fields .. and additionally the code for adding the display of properties!
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yaroslav Alexandrov, 2019-11-30
@Askfortrue

Print the data of the resulting array $arResult
<?print_r($arResult);?>
[PREVIEW_PICTURE] => 2138 this is the ID of the registered file, you can get the picture itself from it
[ELEMENTS][ID] - by ID you can get the values ​​of the element properties, including and custom fields using the CIBlockElement-GetList and CIBlockElement-GetProperty APIs

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question