Answer the question
In order to leave comments, you need to log in
How to pass an array of compared products to the "catalogue section elements" component in 1s-Bitrix?
There is a "list of compared products" component. How do I get them to look like a directory partition??
I think it's possible to pass the compared goods to the "catalogue section elements" component, or not?
Answer the question
In order to leave comments, you need to log in
copy the component template, and in the result_modifier.php file at the end write $arResult["ITEMS"] = $_SESSION["CATALOG_COMPARE_LIST"][16]["ITEMS"];
where CATALOG_COMPARE_LIST - Unique name for the comparison list, specified in the "catalog" component settings, 16 - infoblock id
Before calling catalog.section write the following
global $arFilter;
$arFilter = array(“ID”=>array(id сравниваемых товаров);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question