本文整理匯總了PHP中CIBlockPriceTools::getMinPriceFromOffers方法的典型用法代碼示例。如果您正苦於以下問題:PHP CIBlockPriceTools::getMinPriceFromOffers方法的具體用法?PHP CIBlockPriceTools::getMinPriceFromOffers怎麽用?PHP CIBlockPriceTools::getMinPriceFromOffers使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CIBlockPriceTools
的用法示例。
在下文中一共展示了CIBlockPriceTools::getMinPriceFromOffers方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
}
$arOneRow = array('ID' => $arOffer['ID'], 'NAME' => $arOffer['~NAME'], 'TREE' => $arOffer['TREE'], 'DISPLAY_PROPERTIES' => $arSKUProps, 'PRICE' => isset($arOffer['RATIO_PRICE']) ? $arOffer['RATIO_PRICE'] : $arOffer['MIN_PRICE'], 'SECOND_PICT' => $arOffer['SECOND_PICT'], 'OWNER_PICT' => $arOffer['OWNER_PICT'], 'PREVIEW_PICTURE' => $arOffer['PREVIEW_PICTURE'], 'PREVIEW_PICTURE_SECOND' => $arOffer['PREVIEW_PICTURE_SECOND'], 'CHECK_QUANTITY' => $arOffer['CHECK_QUANTITY'], 'MAX_QUANTITY' => $arOffer['CATALOG_QUANTITY'], 'STEP_QUANTITY' => $arOffer['CATALOG_MEASURE_RATIO'], 'QUANTITY_FLOAT' => is_double($arOffer['CATALOG_MEASURE_RATIO']), 'MEASURE' => $arOffer['~CATALOG_MEASURE_NAME'], 'CAN_BUY' => $arOffer['CAN_BUY'], 'BUY_URL' => $arOffer['~BUY_URL'], 'ADD_URL' => $arOffer['~ADD_URL']);
$arMatrix[$keyOffer] = $arOneRow;
}
if (-1 == $intSelected) {
$intSelected = 0;
}
if (!$arMatrix[$intSelected]['OWNER_PICT']) {
$arItem['PREVIEW_PICTURE'] = $arMatrix[$intSelected]['PREVIEW_PICTURE'];
$arItem['PREVIEW_PICTURE_SECOND'] = $arMatrix[$intSelected]['PREVIEW_PICTURE_SECOND'];
}
$arItem['JS_OFFERS'] = $arMatrix;
$arItem['OFFERS_SELECTED'] = $intSelected;
$arItem['OFFERS_PROPS_DISPLAY'] = $boolSKUDisplayProperties;
} else {
$arItem['MIN_PRICE'] = CIBlockPriceTools::getMinPriceFromOffers($arItem['OFFERS'], $boolConvert ? $arResult['CONVERT_CURRENCY']['CURRENCY_ID'] : $strBaseCurrency);
}
}
if ($arResult['MODULES']['catalog'] && $arItem['CATALOG'] && CCatalogProduct::TYPE_PRODUCT == $arItem['CATALOG_TYPE']) {
CIBlockPriceTools::setRatioMinPrice($arItem, true);
}
if (!empty($arItem['DISPLAY_PROPERTIES'])) {
foreach ($arItem['DISPLAY_PROPERTIES'] as $propKey => $arDispProp) {
if ('F' == $arDispProp['PROPERTY_TYPE']) {
unset($arItem['DISPLAY_PROPERTIES'][$propKey]);
}
}
}
$arItem['LAST_ELEMENT'] = 'N';
$arNewItemsList[$key] = $arItem;
}