A
A
Andrey Korekhov2020-03-11 10:34:00
1C-Bitrix
Andrey Korekhov, 2020-03-11 10:34:00

1s Bitrix how to display search results in personal recommendations?

In the product card, a search is implemented for trade offers of related products (the ability to buy as a set).

$arSKU = CCatalogSKU::getOffersList($IDs, 0, array('ACTIVE' => 'Y','AVAILABLE' => 'Y',''), array('NAME','QUANTITY'), array('QUANTITY'));

As a result of the search, a list of matching offers is displayed that can be added to the basket by ID
Add2BasketByProductID(
         $productID,
         $quantity,
         array()
      );


The problem is that just a list is displayed
5e68935b0b78b983066662.png

. How, based on the search results, to display these products in the Offers block (Personal recommendations)?
And am I reinventing the wheel =)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Korekhov, 2020-03-25
@Haotik

Issue resolved.
I made a preview on my own and made a sidebar in the right place in the template.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question