<?
if (is_array($arResult['DISPLAY_PROPERTIES']) && count($arResult['DISPLAY_PROPERTIES']) > 0):
?>
<?$arProperty = $arResult["DISPLAY_PROPERTIES"]["RECOMMEND"]?>
<?if(count($arProperty["DISPLAY_VALUE"]) > 0):?>
<div class="catalog-detail-recommends">
<h4><?=$arProperty["NAME"]?></h4>
<div class="catalog-detail-recommend">
<?
global $arRecPrFilter;
$arRecPrFilter["ID"] = $arResult["DISPLAY_PROPERTIES"]["RECOMMEND"]["VALUE"];
$APPLICATION->IncludeComponent("bitrix:store.catalog", "", array(
"IBLOCK_TYPE" => "",
"IBLOCK_ID" => "",
"ELEMENT_SORT_FIELD" => "sort",
"ELEMENT_SORT_ORDER" => "desc",
"ELEMENT_COUNT" => $arParams["ELEMENT_COUNT"],
"LINE_ELEMENT_COUNT" => $arParams["LINE_ELEMENT_COUNT"],
"BASKET_URL" => $arParams["BASKET_URL"],
"ACTION_VARIABLE" => $arParams["ACTION_VARIABLE"],
"PRODUCT_ID_VARIABLE" => $arParams["PRODUCT_ID_VARIABLE"],
"CACHE_TYPE" => $arParams["CACHE_TYPE"],
"CACHE_TIME" => $arParams["CACHE_TIME"],
"DISPLAY_COMPARE" => "N",
"PRICE_CODE" => $arParams["PRICE_CODE"],
"USE_PRICE_COUNT" => $arParams["USE_PRICE_COUNT"],
"SHOW_PRICE_COUNT" => $arParams["SHOW_PRICE_COUNT"],
"PRICE_VAT_INCLUDE" => $arParams["PRICE_VAT_INCLUDE"],
"FILTER_NAME" => "arRecPrFilter",
"ELEMENT_COUNT" => 30,
),
$component
);
?>
</div>
</div>
<?unset($arResult["DISPLAY_PROPERTIES"]["RECOMMEND"])?>
<?endif;?> |