Exemplo n.º 1
0
         					'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;
         $arItem['MIN_PRICE'] = CIShop::getMinPriceFromOffersExt($arItem['OFFERS'], $boolConvert ? $arResult['CONVERT_CURRENCY']['CURRENCY_ID'] : $strBaseCurrency);
     }
     if ($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;
 }
 $arNewItemsList[$key]['LAST_ELEMENT'] = 'Y';
Exemplo n.º 2
0
                 }
             }
         }
         $arSkuTmp["CAN_BUY"] = $arOffer["CAN_BUY"];
         $arSkuTmp["ADD_URL"] = htmlspecialcharsback($arOffer["ADD_URL"]);
         $arSkuTmp["SUBSCRIBE_URL"] = htmlspecialcharsback($arOffer["SUBSCRIBE_URL"]);
         $arSkuTmp["COMPARE"] = "";
         if (isset($_SESSION[$arParams["COMPARE_NAME"]][$arParams["IBLOCK_ID"]]["ITEMS"][$arOffer["ID"]])) {
             $arSkuTmp["COMPARE"] = "inCompare";
         }
         $arSkuTmp["COMPARE_URL"] = htmlspecialcharsback($arOffer["COMPARE_URL"]);
         $arSku[] = $arSkuTmp;
         /* -- SKU*/
     }
     /*set min_price*/
     $arMinPriceOffer = CIShop::getMinPriceFromOffersExt($arElement["OFFERS"], $boolConvert ? $arResult['CONVERT_CURRENCY']['CURRENCY_ID'] : $strBaseCurrency);
     $arResult["ITEMS"][$cell]["MIN_PRICE_OFFER"] = $arMinPriceOffer;
     if ((!is_array($arIblockOfferProps2) || empty($arIblockOfferProps2)) && is_array($arSku) && !empty($arSku)) {
         $arIblockOfferProps2[] = array("CODE" => "TITLE", "NAME" => GetMessage("CATALOG_OFFER_NAME"));
     }
     $arResult["ITEMS"][$cell]["SKU_ELEMENTS"] = $arSku;
     $arResult["ITEMS"][$cell]["SKU_PROPERTIES"] = $arIblockOfferProps2;
 } else {
     $arPrice = $arElement["PRICES"][$basePriceTypeName];
     if ($arPrice["CAN_ACCESS"]) {
         if ($arPrice["DISCOUNT_VALUE"] < $arPrice["VALUE"]) {
             $arResult["ITEMS"][$cell]["MIN_PRODUCT_PRICE"] = $arPrice["VALUE"];
             $arResult["ITEMS"][$cell]["MIN_PRODUCT_DISCOUNT_PRICE"] = $arPrice["DISCOUNT_VALUE"];
             $arResult["ITEMS"][$cell]["MIN_PRODUCT_PRICE_PRINT"] = $arPrice["PRINT_VALUE"];
             $arResult["ITEMS"][$cell]["MIN_PRODUCT_DISCOUNT_PRICE_PRINT"] = $arPrice["PRINT_DISCOUNT_VALUE"];
         } else {
Exemplo n.º 3
0
                    ?>
									</span>
								<?php 
                }
                ?>
							<?php 
            } else {
                ?>
								<?php 
                if ($arParams["SHOW_MEASURE"] == "Y" && $arMeasure["SYMBOL_RUS"]) {
                    ?>
									<span><?php 
                    echo GetMessage("CATALOG_FROM");
                    ?>
 <?php 
                    echo CIShop::formatPriceExt($arItem["MIN_PRICE_OFFER"]["PRINT_VALUE"], $arMeasure["SYMBOL_RUS"]);
                    ?>
</span>
								<?php 
                } else {
                    ?>
									<span><?php 
                    echo GetMessage("CATALOG_FROM");
                    ?>
 <?php 
                    echo $arItem["MIN_PRICE_OFFER"]["PRINT_VALUE"];
                    ?>
</span>
								<?php 
                }
                ?>
Exemplo n.º 4
0
	<?php 
$isCatalog = CSite::InDir(SITE_DIR . 'catalog/');
?>
	<?php 
$isContacts = CSite::InDir(SITE_DIR . 'contacts/');
?>
	<?php 
$issale = CSite::InDir(SITE_DIR . 'sale/index.php');
?>
	<?php 
$isAdv = CSite::InDir(SITE_DIR . 'catalog/sale/') || CSite::InDir(SITE_DIR . 'catalog/hit/') || CSite::InDir(SITE_DIR . 'catalog/recommend/') || CSite::InDir(SITE_DIR . 'catalog/new/') || CSite::InDir(SITE_DIR . 'company/') || CSite::InDir(SITE_DIR . 'info/') || CSite::InDir(SITE_DIR . 'personal/index.php') || CSite::InDir(SITE_DIR . 'personal/profile/') || CSite::InDir(SITE_DIR . 'help/');
?>
</head>
<body>
	<?php 
CIShop::SetJSOptions();
?>
	
	<div id="panel"><?php 
$APPLICATION->ShowPanel();
?>
</div>
	<div class="top_bg">
		<div class="top_block">
			<?php 
$APPLICATION->IncludeComponent("bitrix:system.auth.form", "top", array("REGISTER_URL" => "/auth/", "FORGOT_PASSWORD_URL" => "/auth/", "PROFILE_URL" => "/personal/", "SHOW_ERRORS" => "Y"));
?>
			<div class="phone_feedback">
				<span> <?php 
$APPLICATION->IncludeFile("/include/phone_feedback.php", array(), array("MODE" => "html", "NAME" => GetMessage("PHONE")));
?>