當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。