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


PHP CSaleDeliveryHandler::GetHandlerExtraParams方法代码示例

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


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

示例1: GetMessage

								?>
							</span>
						</td>
					</tr>
					<?
					if (!empty($arDeliveryName)):
					?>
					<tr>
						<td><?php 
echo GetMessage("SOD_DELIVERY_SERVICE_NAME");
?>
:</td>
						<td><? echo "[".htmlspecialcharsEx($arDeliveryName[1])."] ".htmlspecialcharsEx($arDeliveryData["PROFILES"][$arDeliveryName[1]]["TITLE"]); ?></td>
					</tr>
					<?
					$arDeliveryExtraParams = CSaleDeliveryHandler::GetHandlerExtraParams($arDeliveryData["SID"], $arDeliveryName[1], $arOrder);
					$depList = \Bitrix\Sale\Delivery\OrderDeliveryTable::getList(array(
						'filter'=>array('=ORDER_ID'=>$ID),
					));
					if($dep = $depList->fetch())
					{
						$depParams = unserialize($dep["PARAMS"]);

						foreach($arDeliveryExtraParams as $paramId => $paramOptions)
						{
							if(isset($depParams[$paramId]))
							{
								if(isset($paramOptions["VALUES"]) && isset($paramOptions["VALUES"][$depParams[$paramId]]))
								{
									$value =  $paramOptions["VALUES"][$depParams[$paramId]];
								}
开发者ID:akniyev,项目名称:arteva.ru,代码行数:31,代码来源:order_detail.php

示例2: foreach

 foreach ($arDeliveryServiceAll as $arDeliveryService) {
     foreach ($arDeliveryService["PROFILES"] as $profile_id => $arDeliveryProfile) {
         if ($arDeliveryProfile["ACTIVE"] == "Y" && (count($arP2D[$arUserResult["PAY_SYSTEM_ID"]]) <= 0 || in_array($arDeliveryService["SID"], $arP2D[$arUserResult["PAY_SYSTEM_ID"]]) || empty($arD2P[$arDeliveryService["SID"]]))) {
             $delivery_id = $arDeliveryService["SID"];
             $arProfile = array("SID" => $profile_id, "TITLE" => $arDeliveryProfile["TITLE"], "DESCRIPTION" => $arDeliveryProfile["DESCRIPTION"], "FIELD_NAME" => "DELIVERY_ID");
             if (strlen($arUserResult["DELIVERY_ID"]) > 0 && $arUserResult["DELIVERY_ID"] == $delivery_id . ":" . $profile_id) {
                 $arProfile["CHECKED"] = "Y";
                 $arUserResult["DELIVERY_ID"] = $delivery_id . ":" . $profile_id;
                 $bSelected = true;
                 $arOrderTmpDel = array("PRICE" => $arResult["ORDER_PRICE"], "WEIGHT" => $arResult["ORDER_WEIGHT"], "DIMENSIONS" => $arResult["ORDER_DIMENSIONS"], "LOCATION_FROM" => COption::GetOptionInt('sale', 'location'), "LOCATION_TO" => $arUserResult["DELIVERY_LOCATION"], "LOCATION_ZIP" => $arUserResult["DELIVERY_LOCATION_ZIP"], "ITEMS" => $arResult["BASKET_ITEMS"], "EXTRA_PARAMS" => $arResult["DELIVERY_EXTRA"]);
                 $arDeliveryPrice = CSaleDeliveryHandler::CalculateFull($delivery_id, $profile_id, $arOrderTmpDel, $arResult["BASE_LANG_CURRENCY"]);
             }
             if (empty($arResult["DELIVERY"][$delivery_id])) {
                 $arResult["DELIVERY"][$delivery_id] = array("SID" => $delivery_id, "SORT" => $arDeliveryService["SORT"], "TITLE" => $arDeliveryService["NAME"], "DESCRIPTION" => $arDeliveryService["DESCRIPTION"], "PROFILES" => array());
             }
             $arDeliveryExtraParams = CSaleDeliveryHandler::GetHandlerExtraParams($delivery_id, $profile_id, $arOrderTmpDel, SITE_ID);
             if (!empty($arDeliveryExtraParams)) {
                 $_SESSION["SALE_DELIVERY_EXTRA_PARAMS"][$delivery_id . ":" . $profile_id] = $arDeliveryExtraParams;
                 $arResult["DELIVERY"][$delivery_id]["ISNEEDEXTRAINFO"] = "Y";
             } else {
                 $arResult["DELIVERY"][$delivery_id]["ISNEEDEXTRAINFO"] = "N";
             }
             if ($arDeliveryPrice["RESULT"] == "ERROR") {
                 $arResult["ERROR"][] = $arDeliveryPrice["TEXT"];
             } else {
                 $arResult["DELIVERY_PRICE"] = roundEx($arDeliveryPrice["VALUE"], SALE_VALUE_PRECISION);
                 $arResult["PACKS_COUNT"] = $arDeliveryPrice["PACKS_COUNT"];
             }
             if (!empty($arUserResult["DELIVERY_ID"]) && strpos($arUserResult["DELIVERY_ID"], ":") !== false) {
                 if ($arUserResult["DELIVERY_ID"] == $delivery_id . ":" . $profile_id) {
                     $bFound = true;
开发者ID:sharapudinov,项目名称:lovestore.top,代码行数:31,代码来源:component.php


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