本文整理匯總了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;