當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CIBlockPriceTools::getDoublePicturesForItem方法代碼示例

本文整理匯總了PHP中CIBlockPriceTools::getDoublePicturesForItem方法的典型用法代碼示例。如果您正苦於以下問題:PHP CIBlockPriceTools::getDoublePicturesForItem方法的具體用法?PHP CIBlockPriceTools::getDoublePicturesForItem怎麽用?PHP CIBlockPriceTools::getDoublePicturesForItem使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在CIBlockPriceTools的用法示例。


在下文中一共展示了CIBlockPriceTools::getDoublePicturesForItem方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: elseif

             $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['SECOND_PICT'] = false;
 $arOffer['PREVIEW_PICTURE_SECOND'] = false;
 CIBlockPriceTools::setRatioMinPrice($arOffer);
 $offerPictures = CIBlockPriceTools::getDoublePicturesForItem($arOffer, $arParams['OFFER_ADD_PICT_PROP']);
 $arOffer['OWNER_PICT'] = empty($offerPictures['PICT']);
 $arOffer['PREVIEW_PICTURE'] = false;
 $arOffer['PREVIEW_PICTURE_SECOND'] = false;
 $arOffer['SECOND_PICT'] = true;
 if (!$arOffer['OWNER_PICT']) {
     if (empty($offerPictures['SECOND_PICT'])) {
         $offerPictures['SECOND_PICT'] = $offerPictures['PICT'];
     }
     $arOffer['PREVIEW_PICTURE'] = $offerPictures['PICT'];
     $arOffer['PREVIEW_PICTURE_SECOND'] = $offerPictures['SECOND_PICT'];
 }
 if ('' != $arParams['OFFER_ADD_PICT_PROP'] && isset($arOffer['DISPLAY_PROPERTIES'][$arParams['OFFER_ADD_PICT_PROP']])) {
     unset($arOffer['DISPLAY_PROPERTIES'][$arParams['OFFER_ADD_PICT_PROP']]);
 }
 $arDouble[$arOffer['ID']] = true;
開發者ID:akniyev,項目名稱:itprom_dobrohost,代碼行數:31,代碼來源:result_modifier.php

示例2: is_float

             $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;
 }
 $arOffer['CATALOG_QUANTITY'] = 0 < $arOffer['CATALOG_QUANTITY'] && is_float($arOffer['CATALOG_MEASURE_RATIO']) ? floatval($arOffer['CATALOG_QUANTITY']) : intval($arOffer['CATALOG_QUANTITY']);
 $arOffer['CATALOG_TYPE'] = CCatalogProduct::TYPE_OFFER;
 CIBlockPriceTools::setRatioMinPrice($arOffer);
 $offerPictures = CIBlockPriceTools::getDoublePicturesForItem($arOffer, $arParams['ADDITIONAL_PICT_PROP'][$arOffer['IBLOCK_ID']]);
 $arOffer['OWNER_PICT'] = empty($offerPictures['PICT']);
 $arOffer['PREVIEW_PICTURE'] = false;
 $arOffer['PREVIEW_PICTURE_SECOND'] = false;
 $arOffer['SECOND_PICT'] = true;
 /*if (!$arOffer['OWNER_PICT'])
 		{
 			if (empty($offerPictures['SECOND_PICT']))
 				$offerPictures['SECOND_PICT'] = $offerPictures['PICT'];
 			$arOffer['PREVIEW_PICTURE'] = $offerPictures['PICT'];
 			$arOffer['PREVIEW_PICTURE_SECOND'] = $offerPictures['SECOND_PICT'];
 		}*/
 if ('' != $arParams['OFFER_ADD_PICT_PROP'] && isset($arOffer['DISPLAY_PROPERTIES'][$arParams['OFFER_ADD_PICT_PROP']])) {
     unset($arOffer['DISPLAY_PROPERTIES'][$arParams['OFFER_ADD_PICT_PROP']]);
 }
 $arNewOffers[$keyOffer] = $arOffer;
開發者ID:Andreyjktl,項目名稱:rezina74,代碼行數:31,代碼來源:result_modifier.php

示例3: is_float

     continue;
 }
 $arItem['CHECK_QUANTITY'] = false;
 if (!isset($arItem['CATALOG_MEASURE_RATIO'])) {
     $arItem['CATALOG_MEASURE_RATIO'] = 1;
 }
 if (!isset($arItem['CATALOG_QUANTITY'])) {
     $arItem['CATALOG_QUANTITY'] = 0;
 }
 $arItem['CATALOG_QUANTITY'] = 0 < $arItem['CATALOG_QUANTITY'] && is_float($arItem['CATALOG_MEASURE_RATIO']) ? floatval($arItem['CATALOG_QUANTITY']) : intval($arItem['CATALOG_QUANTITY']);
 $arItem['CATALOG'] = false;
 if (!isset($arItem['CATALOG_SUBSCRIPTION']) || 'Y' != $arItem['CATALOG_SUBSCRIPTION']) {
     $arItem['CATALOG_SUBSCRIPTION'] = 'N';
 }
 CIBlockPriceTools::getLabel($arItem, $arParams['LABEL_PROP']);
 $productPictures = CIBlockPriceTools::getDoublePicturesForItem($arItem, $arParams['ADD_PICT_PROP']);
 if (empty($productPictures['PICT'])) {
     $productPictures['PICT'] = $arEmptyPreview;
 }
 if (empty($productPictures['SECOND_PICT'])) {
     $productPictures['SECOND_PICT'] = $productPictures['PICT'];
 }
 $arItem['PREVIEW_PICTURE'] = $productPictures['PICT'];
 $arItem['PREVIEW_PICTURE_SECOND'] = $productPictures['SECOND_PICT'];
 $arItem['SECOND_PICT'] = true;
 $arItem['PRODUCT_PREVIEW'] = $productPictures['PICT'];
 $arItem['PRODUCT_PREVIEW_SECOND'] = $productPictures['SECOND_PICT'];
 if ($arResult['MODULES']['catalog']) {
     $arItem['CATALOG'] = true;
     if (!isset($arItem['CATALOG_TYPE'])) {
         $arItem['CATALOG_TYPE'] = CCatalogProduct::TYPE_PRODUCT;
開發者ID:akniyev,項目名稱:itprom_dobrohost,代碼行數:31,代碼來源:result_modifier.php


注:本文中的CIBlockPriceTools::getDoublePicturesForItem方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。