本文整理汇总了PHP中CIBlockPriceTools::getSliderForItem方法的典型用法代码示例。如果您正苦于以下问题:PHP CIBlockPriceTools::getSliderForItem方法的具体用法?PHP CIBlockPriceTools::getSliderForItem怎么用?PHP CIBlockPriceTools::getSliderForItem使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CIBlockPriceTools
的用法示例。
在下文中一共展示了CIBlockPriceTools::getSliderForItem方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: intval
}
elseif ('E' == $arSKUPropList[$strOneCode]['PROPERTY_TYPE'])
{
$arCell['VALUE'] = intval($arOffer['DISPLAY_PROPERTIES'][$strOneCode]['VALUE']);
}
$arCell['SORT'] = $arSKUPropList[$strOneCode]['VALUES'][$arCell['VALUE']]['SORT'];
}
$arRow[$strOneCode] = $arCell;
}
$arMatrix[$keyOffer] = $arRow;
CIBlockPriceTools::setRatioMinPrice($arOffer);
$arOffer['MORE_PHOTO'] = array();
$arOffer['MORE_PHOTO_COUNT'] = 0;
$offerSlider = CIBlockPriceTools::getSliderForItem($arOffer, $arParams['OFFER_ADD_PICT_PROP'], 'Y' == $arParams['ADD_DETAIL_TO_SLIDER']);
if (empty($offerSlider))
{
$offerSlider = $productSlider;
}
$arOffer['MORE_PHOTO'] = $offerSlider;
$arOffer['MORE_PHOTO_COUNT'] = count($offerSlider);
$boolSKUDisplayProps = CIBlockPriceTools::clearProperties($arOffer['DISPLAY_PROPERTIES'], $arParams['OFFER_TREE_PROPS']);
$arDouble[$arOffer['ID']] = true;
$arNewOffers[$keyOffer] = $arOffer;
}
$arResult['OFFERS'] = $arNewOffers;
$arResult['SHOW_OFFERS_PROPS'] = $boolSKUDisplayProps;