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


PHP CIBlockPriceTools::clearProperties方法代码示例

本文整理汇总了PHP中CIBlockPriceTools::clearProperties方法的典型用法代码示例。如果您正苦于以下问题:PHP CIBlockPriceTools::clearProperties方法的具体用法?PHP CIBlockPriceTools::clearProperties怎么用?PHP CIBlockPriceTools::clearProperties使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CIBlockPriceTools的用法示例。


在下文中一共展示了CIBlockPriceTools::clearProperties方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

		}
		$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;

	$arUsedFields = array();
	$arSortFields = array();

	foreach ($arSKUPropIDs as $propkey => $strOneCode)
	{
		$boolExist = $arMatrixFields[$strOneCode];
		foreach ($arMatrix as $keyOffer => $arRow)
		{
开发者ID:ASDAFF,项目名称:mp,代码行数:31,代码来源:result_modifier.php

示例2: elseif

         $arMatrixFields[$strOneCode] = true;
         $arCell['NA'] = false;
         if ('directory' == $arSKUPropList[$strOneCode]['USER_TYPE']) {
             $intValue = $arSKUPropList[$strOneCode]['XML_MAP'][$arOffer['DISPLAY_PROPERTIES'][$strOneCode]['VALUE']];
             $arCell['VALUE'] = $intValue;
         } elseif ('L' == $arSKUPropList[$strOneCode]['PROPERTY_TYPE']) {
             $arCell['VALUE'] = intval($arOffer['DISPLAY_PROPERTIES'][$strOneCode]['VALUE_ENUM_ID']);
         } 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::clearProperties($arOffer['DISPLAY_PROPERTIES'], $arParams['OFFER_TREE_PROPS'][$arOffer['IBLOCK_ID']]);
 $newOfferProps = array();
 if (!empty($arParams['PROPERTY_CODE'][$arOffer['IBLOCK_ID']])) {
     foreach ($arParams['PROPERTY_CODE'][$arOffer['IBLOCK_ID']] as $propName) {
         if (isset($arOffer['DISPLAY_PROPERTIES'][$propName])) {
             $newOfferProps[$propName] = $arOffer['DISPLAY_PROPERTIES'][$propName];
         }
     }
 }
 $arOffer['DISPLAY_PROPERTIES'] = $newOfferProps;
 $arOffer['CHECK_QUANTITY'] = 'Y' == $arOffer['CATALOG_QUANTITY_TRACE'] && 'N' == $arOffer['CATALOG_CAN_BUY_ZERO'];
 if (!isset($arOffer['CATALOG_MEASURE_RATIO'])) {
     $arOffer['CATALOG_MEASURE_RATIO'] = 1;
 }
 if (!isset($arOffer['CATALOG_QUANTITY'])) {
     $arOffer['CATALOG_QUANTITY'] = 0;
开发者ID:Andreyjktl,项目名称:rezina74,代码行数:31,代码来源:result_modifier.php

示例3: array

		}
		$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);

		if (CIBlockPriceTools::clearProperties($arOffer['DISPLAY_PROPERTIES'], $arParams['OFFER_TREE_PROPS']))
		{
			$boolSKUDisplayProps = true;
		}

		$arDouble[$arOffer['ID']] = true;
		$arNewOffers[$keyOffer] = $arOffer;
	}
	$arResult['OFFERS'] = $arNewOffers;
	$arResult['SHOW_OFFERS_PROPS'] = $boolSKUDisplayProps;

	$arUsedFields = array();
	$arSortFields = array();

	foreach ($arSKUPropIDs as $propkey => $strOneCode)
	{
开发者ID:akniyev,项目名称:tdpersona,代码行数:31,代码来源:result_modifier.php


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