M
M
miniven2017-09-07 12:02:19
css
miniven, 2017-09-07 12:02:19

How to get information about a product by its ID in Bitrix?

The task is this: there is a product with elements attached to it. As I understand it, only the IDs of the related elements are stored in the product properties.
So you need to get information on these elements by these IDs (specifically: title, link to the detailed page, image, availability). How can I do that? Tried CCatalogProduct::GetByID() but it doesn't give a complete product description.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
Technique102, 2017-09-07
@miniven

https://dev.1c-bitrix.ru/api_help/iblock/classes/c...
in $arFilter you put all the IDs from the property. In $arSelect you specify all the necessary properties. And in a cycle you touch.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question