当前位置: 首页>>代码示例>>PHP>>正文


PHP CIBlockPriceTools::getMinPriceFromOffers方法代码示例

本文整理汇总了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;
 }
开发者ID:akniyev,项目名称:itprom_dobrohost,代码行数:31,代码来源:result_modifier.php


注:本文中的CIBlockPriceTools::getMinPriceFromOffers方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。