本文整理匯總了PHP中CSaleLocation::getLocationIDByCODE方法的典型用法代碼示例。如果您正苦於以下問題:PHP CSaleLocation::getLocationIDByCODE方法的具體用法?PHP CSaleLocation::getLocationIDByCODE怎麽用?PHP CSaleLocation::getLocationIDByCODE使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CSaleLocation
的用法示例。
在下文中一共展示了CSaleLocation::getLocationIDByCODE方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: Array
ExecuteModuleEventEx($arEvent, Array(&$arResult, &$arUserResult, &$arParams));
/* Order Props End */
//delete prop for text location
if (count($arDeleteFieldLocation) > 0)
{
foreach ($arDeleteFieldLocation as $fieldId)
unset($arResult["ORDER_PROP"]["USER_PROPS_Y"][$fieldId]);
}
/* Delivery Begin */
if ((int)$arUserResult["DELIVERY_LOCATION"] > 0)
{
$locFrom = COption::GetOptionString('sale', 'location', false, SITE_ID);
if(CSaleLocation::isLocationProMigrated())
$locFrom = CSaleLocation::getLocationIDByCODE($locFrom);
$arFilter = array(
"COMPABILITY" => array(
"WEIGHT" => $arResult["ORDER_WEIGHT"],
"PRICE" => $arResult["ORDER_PRICE"],
"LOCATION_FROM" => $locFrom,
"LOCATION_TO" => $arUserResult["DELIVERY_LOCATION"],
"LOCATION_ZIP" => $arUserResult["DELIVERY_LOCATION_ZIP"],
"MAX_DIMENSIONS" => $arResult["MAX_DIMENSIONS"],
"ITEMS" => $arResult["BASKET_ITEMS"]
)
);
$bFirst = true;
$arDeliveryServiceAll = array();