A
A
Alexer052019-07-11 14:26:49
1C-Bitrix
Alexer05, 2019-07-11 14:26:49

What could be causing the $arResult['OFFERS'] array to be empty?

Updated Bitrix from version 16.5 to 18.5, and an empty array $arResult['OFFERS'] is returned? Why might this be so?
I googled and found that I need to add the HIDE_NOT_AVAILABLE_OFFERS parameter, I added it, but the array is still displayed empty. At the same time, the number of goods (bargaining offers) is available.
The code below fires and returns trade offers.

CIBlockPriceTools::GetOffersArray(
    array('IBLOCK_ID' => 3),
    array(516035),
    array(),
    array(),
    array(),
    0,
    array()
);

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