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


PHP CSaleOrderPropsValue::GetOrderProps方法代码示例

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


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

示例1: preparePreregistrationReqData

 public static function preparePreregistrationReqData($arOrder, $profileId, $arConfig)
 {
     $result = array();
     $result["sender"] = array("inn" => $arConfig["INN"]["VALUE"], "city" => static::getFilialAndCity($arConfig["CITY_DELIVERY"]["VALUE"]), "title" => $arConfig["NAME"]["VALUE"], "phone" => $arConfig["PHONE"]["VALUE"]);
     $inn = "";
     $city = "";
     $title = "";
     $phone = "";
     $address = "";
     if (isset($extraParams["location"])) {
         $city = $extraParams["location"];
     }
     $dbOrderProps = \CSaleOrderPropsValue::GetOrderProps($arOrder["ID"]);
     while ($arOrderProps = $dbOrderProps->Fetch()) {
         if ($arOrderProps["CODE"] == "COMPANY" || $arOrderProps["CODE"] == "FIO") {
             $title = $arOrderProps["VALUE"];
         }
         if ($arOrderProps["CODE"] == "INN") {
             $inn = $arOrderProps["VALUE"];
         }
         if ($arOrderProps["CODE"] == "PHONE") {
             $phone = $arOrderProps["VALUE"];
         }
         if ($arOrderProps["CODE"] == "LOCATION") {
             $location = $arOrderProps["VALUE"];
             $locDelivery = Adapter::mapLocation($location);
             // todo: if more than one
             $city = static::getFilialAndCity(key($locDelivery));
         }
         if ($arOrderProps["CODE"] == "ADDRESS") {
             $address = $arOrderProps["VALUE"];
         }
     }
     $arPacks = \CSaleDeliveryHelper::getBoxesFromConfig($profileId, $arConfig);
     $arPackagesParams = \CSaleDeliveryHelper::getRequiredPacks($arOrder["ITEMS"], $arPacks, 0);
     $result["cargos"] = array(array("common" => array("positionsCount" => count($arPackagesParams), "decription" => GetMessage("SALE_DH_PECOM_DESCRIPTION_GOODS"), "orderNumber" => $arOrder["ACCOUNT_NUMBER"], "paymentForm" => $arConfig["PAYMENT_FORM"]["VALUE"], "accompanyingDocuments" => false), "receiver" => array("inn" => $inn, "city" => $city, "title" => $title, "phone" => $phone, "addressStock" => $address), "services" => array("transporting" => array("payer" => array("type" => 1)), "hardPacking" => array("enabled" => \CDeliveryPecom::isConfCheckedVal($arConfig, 'SERVICE_OTHER_RIGID_PACKING'), "payer" => array("type" => \CDeliveryPecom::getConfValue($arConfig, 'SERVICE_OTHER_RIGID_PAYER'))), "palletTransporting" => array("enabled" => !\CDeliveryPecom::isConfCheckedVal($arConfig, 'SERVICE_OTHER_RIGID_PACKING') && \CDeliveryPecom::isConfCheckedVal($arConfig, 'SERVICE_OTHER_PALLETE'), "payer" => array("type" => \CDeliveryPecom::getConfValue($arConfig, 'SERVICE_OTHER_PALLETE_PAYER'))), "insurance" => array("enabled" => \CDeliveryPecom::isConfCheckedVal($arConfig, 'SERVICE_OTHER_INSURANCE'), "payer" => array("type" => \CDeliveryPecom::getConfValue($arConfig, 'SERVICE_OTHER_INSURANCE_PAYER')), "cost" => intval($arOrder["PRICE"])), "sealing" => array("enabled" => \CDeliveryPecom::isConfCheckedVal($arConfig, 'SERVICE_OTHER_PLOMBIR_ENABLE'), "payer" => array("type" => \CDeliveryPecom::getConfValue($arConfig, 'SERVICE_OTHER_PLOMBIR_PAYER'))), "strapping" => array("enabled" => false), "documentsReturning" => array("enabled" => false), "delivery" => array("enabled" => \CDeliveryPecom::isConfCheckedVal($arConfig, 'SERVICE_DELIVERY_ENABLED'), "payer" => array("type" => \CDeliveryPecom::getConfValue($arConfig, 'SERVICE_OTHER_DELIVERY_PAYER'))))));
     return $result;
 }
开发者ID:akniyev,项目名称:itprom_dobrohost,代码行数:38,代码来源:adapter.php

示例2: fGetBuyerType


//.........这里部分代码省略.........
			array(),
			array("ORDER_ID" => $ORDER_ID, "ACTIVE" => "Y"),
			false,
			false,
			array("ID", "ORDER_PROPS_ID", "NAME", "VALUE", "CODE")
		);
		while ($arPropValuesList = $dbPropValuesList->Fetch())
		{
			// from db
			if(CSaleLocation::isLocationProMigrated() && $arPropertiesList[$arPropValuesList['ORDER_PROPS_ID']]['TYPE'] == 'LOCATION')
				$arPropValuesList["VALUE"] = CSaleLocation::getLocationIDbyCODE($arPropValuesList["VALUE"]);

			$arPropValues[intval($arPropValuesList["ORDER_PROPS_ID"])] = htmlspecialcharsbx($arPropValuesList["VALUE"]);
		}
	}

	$location2townFldMap = array();
	$arDisableFieldForLocation = array();
	//select field (town) for disable
	$dbProperties = CSaleOrderProps::GetList(
		array(),
		array("PERSON_TYPE_ID" => $PERSON_TYPE_ID, "ACTIVE" => "Y", ">INPUT_FIELD_LOCATION" => 0),
		false,
		false,
		array("INPUT_FIELD_LOCATION")
	);
	while ($arProperties = $dbProperties->Fetch())
	{
		$arDisableFieldForLocation[$arProperties["INPUT_FIELD_LOCATION"]] = $arProperties["INPUT_FIELD_LOCATION"];
	}

	//show town if location is another
	$arEnableTownProps = array();
	$dbOrderProps = CSaleOrderPropsValue::GetOrderProps($ORDER_ID);
	while ($arOrderProps = $dbOrderProps->Fetch())
	{
		if($arOrderProps["TYPE"] == "LOCATION" && $arOrderProps["ACTIVE"] == "Y" && $arOrderProps["IS_LOCATION"] == "Y")
		{
			if (in_array($arOrderProps["INPUT_FIELD_LOCATION"], $arDisableFieldForLocation))
			{
				if(CSaleLocation::isLocationProMigrated())
				{
					if(CSaleLocation::checkLocationIsAboveCity($arPropValues[$arOrderProps["ORDER_PROPS_ID"]]))
						unset($arDisableFieldForLocation[$arOrderProps["INPUT_FIELD_LOCATION"]]);
				}
				else
				{
					$arLocation = CSaleLocation::GetByID($arPropValues[$arOrderProps["ORDER_PROPS_ID"]]);
					if (intval($arLocation["CITY_ID"]) <= 0)
						unset($arDisableFieldForLocation[$arOrderProps["INPUT_FIELD_LOCATION"]]);
				}
			}

			$location2townFldMap[$arOrderProps['ORDER_PROPS_ID']] = $arOrderProps['INPUT_FIELD_LOCATION'];
		}
	}

	$propertyGroupID = -1;

	foreach($arPropertiesList as $arProperties)
	{
		if (intval($arProperties["PROPS_GROUP_ID"]) != $propertyGroupID)
		{
			$resultHtml .= "<tr><td colspan=\"2\" style=\"text-align:center;font-weight:bold;font-size:14px;color:rgb(75, 98, 103);\" >".htmlspecialcharsEx($arProperties["GROUP_NAME"])."\n</td>\n</tr>";
			$propertyGroupID = intval($arProperties["PROPS_GROUP_ID"]);
		}
开发者ID:akniyev,项目名称:arteva.ru,代码行数:67,代码来源:admin_tool.php

示例3: array

						array(
							"ORDER_ID" => $ID,
							"PERSON_TYPE_ID" => $arPersonType["ID"],
							"ACTIVE" => "Y",
							">INPUT_FIELD_LOCATION" => 0
						),
						false,
						false,
						array("INPUT_FIELD_LOCATION")
					);
					while ($arProperties = $dbProperties->Fetch())
						$arTownOrderProps[$arProperties["INPUT_FIELD_LOCATION"]] = $arProperties["INPUT_FIELD_LOCATION"];

					$arEnableTownProps = array();
					$arOrderPropsValue = array();
					$dbOrderProps = CSaleOrderPropsValue::GetOrderProps($ID);
					while ($arOrderProps = $dbOrderProps->Fetch())
					{
						$arOrderPropsValue[] = $arOrderProps;
						if ($arOrderProps["TYPE"] == "LOCATION" && $arOrderProps["ACTIVE"] == "Y" && $arOrderProps["IS_LOCATION"] == "Y" && in_array($arOrderProps["INPUT_FIELD_LOCATION"], $arTownOrderProps))
						{
							if(CSaleLocation::isLocationProMigrated())
							{
								$arEnableTownProps[$arOrderProps["INPUT_FIELD_LOCATION"]] = CSaleLocation::checkLocationIsAboveCity($arOrderProps["VALUE"]);
							}
							else
							{
								$arLocation = CSaleLocation::GetByID($arOrderProps["VALUE"]);
								if (IntVal($arLocation["CITY_ID"]) <= 0)
									$arEnableTownProps[$arOrderProps["INPUT_FIELD_LOCATION"]] = true;
								else
开发者ID:akniyev,项目名称:arteva.ru,代码行数:31,代码来源:order_detail.php

示例4: bxModifySaleMails

/**
 * событие вызывается перед отправкой письма о новом заказе
 * @param $orderID
 * @param $eventName
 * @param $arFields
 */
function bxModifySaleMails($order_id, &$eventName, &$arFieldsEmail)
{
                                             
    //unset($_SESSION['OnBeforeOrderAddHandler']);
    //$_SESSION['OnBeforeOrderAddHandler']['bxModifySaleMails']='bxModifySaleMails';
    //$_SESSION['OnBeforeOrderAddHandler']['id']=$order_id;
    //$_SESSION['OnBeforeOrderAddHandler']['arFields']=$arFieldsorder_old;
    $basket_props="";
    $post['INFO']="";
    $id_product=array();
    if(
        (CModule::IncludeModule("main"))
        &&
        (CModule::IncludeModule("iblock"))
        &&
        (CModule::IncludeModule("catalog"))
        &&
        (CModule::IncludeModule("sale"))
    ){


        /**
         * получаем параметры сформировавшегося старого заказа
         */
        $arFieldsorder_old = CSaleOrder::GetByID($order_id);
        /*
        echo "<pre>";
        var_dump($arFieldsorder_old);die();
        echo "</pre>";*/
        /**
         * выборка свойства сформировавшегося заказа по id заказа
         */
        $db_props = CSaleOrderPropsValue::GetOrderProps($order_id);
        $arFields_props = array();

        while ($arProps = $db_props->Fetch())
        {
            $arFields_props_old[$arProps['CODE']]=$arProps;

        }
        //_debug($arFields_props_old);

        /**
         * выборка из корзины по id заказа
         * получаем масси id продукта
         */
         
         $rsUser = CUser::GetByID(CUser::GetID());
         $arUser = $rsUser->Fetch();
         /*if (!$ORDER_ID = CSaleOrder::Add(array(
                                        "LID"              => SITE_ID,
                                        "PERSON_TYPE_ID"   => 1,
                                        "PAYED"            => "N",
                                        "CANCELED"         => "N",
                                        "STATUS_ID"        => "N",
                                        "PRICE"            => 0,
                                        "CURRENCY"         => CSaleLang::GetLangCurrency(SITE_ID),
                                        "USER_ID"          => $arUser['ID'],
                                        "PAY_SYSTEM_ID"    => $arFieldsorder_old['PAY_SYSTEM_ID'],
                                        "PRICE_DELIVERY"   => 0,
                                        "DELIVERY_ID"      => $arFieldsorder_old['DELIVERY_ID'],
                                        "DISCOUNT_VALUE"   => $arFieldsorder_old['DISCOUNT_VALUE'],
                                        "TAX_VALUE"        => $arFieldsorder_old['TAX_VALUE'],
                                        "USER_DESCRIPTION" => $post['INFO']
         ))){

                                        $rows['msg'] = 'Ошибка создания заказа';
                                        $fail          = true;
        }else{
                                        $rows['msg']=$ORDER_ID;
                                        //continue;
        }*/

        $dbBasketItems = CSaleBasket::GetList(
            array("ID" => "ASC"),
            array(
                "LID" => SITE_ID,
                "ORDER_ID" => $order_id
            ),
            false,
            false,
            array()
        );
        while ($arItem = $dbBasketItems->Fetch()){
            $id_product[] = $arItem['PRODUCT_ID'];
            $products_basket[$arItem['PRODUCT_ID']]=$arItem;
        }
        
        foreach($products_basket as $product){
            $price_product+=$product['PRICE']*$product['QUANTITY'];
            $products_descriptions.=$product['NAME']." - ".$product['QUANTITY']." шт: ".intval($product['PRICE'])." руб <br/>";
        
        }
        $price_product+=$arFieldsorder_old["PRICE_DELIVERY"];
//.........这里部分代码省略.........
开发者ID:ASDAFF,项目名称:gpbitrix,代码行数:101,代码来源:class.php

示例5: getOrderProps

 private function getOrderProps($arOrder)
 {
     $dbOrderProps = CSaleOrderPropsValue::GetOrderProps($arOrder["ID"]);
     $orderPropsCodes = array("FIO", "EMAIL", "PHONE", "ZIP", "CITY", "ADDRESS");
     while ($arOrderProps = $dbOrderProps->GetNext()) {
         $arOrder["PROPS"][] = $arOrderProps;
         if (in_array($arOrderProps["CODE"], $orderPropsCodes)) {
             $idx = "CUSTOMER_" . $arOrderProps["CODE"];
             $arOrder[$idx] = $arOrderProps["VALUE"];
         }
         if ($arOrderProps["TYPE"] == "LOCATION") {
             $arVal = CSaleLocation::GetByID($arOrderProps["VALUE"], LANG);
             if (strlen($arOrderProps["CODE"]) > 0) {
                 $arOrder["CUSTOMER_LOCATION"] = htmlspecialcharsEx($arVal["COUNTRY_NAME"] . (strlen($arVal["COUNTRY_NAME"]) <= 0 || strlen($arVal["CITY_NAME"]) <= 0 ? "" : " - ") . $arVal["CITY_NAME"]);
             } else {
                 $arOrder["CUSTOMER_LOCATION"] = htmlspecialcharsEx($arVal["COUNTRY_NAME"] . (strlen($arVal["COUNTRY_NAME"]) <= 0 || strlen($arVal["CITY_NAME"]) <= 0 ? "" : " - ") . $arVal["CITY_NAME"]);
             }
         }
     }
     return $arOrder;
 }
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:21,代码来源:mobile_order.php

示例6: getPhoneEmail

 protected static function getPhoneEmail($orderId)
 {
     $result = array("EMAIL" => "", "PHONE" => "");
     $dbOrderProps = \CSaleOrderPropsValue::GetOrderProps($orderId);
     while ($arOrderProps = $dbOrderProps->Fetch()) {
         if ($arOrderProps["CODE"] == "EMAIL") {
             $result["EMAIL"] = $arOrderProps["VALUE"];
         }
         if ($arOrderProps["CODE"] == "PHONE") {
             $result["PHONE"] = $arOrderProps["VALUE"];
         }
     }
     return $result;
 }
开发者ID:rasuldev,项目名称:torino,代码行数:14,代码来源:delivery_pecom.php

示例7: explode

	$row->AddField("BASKET_QUANTITY", $fieldQuantity);
	$row->AddField("BASKET_PRODUCT_ID", $fieldProductID);
	$row->AddField("BASKET_PRICE", $fieldPrice);
	$row->AddField("BASKET_WEIGHT", $fieldWeight);
	$row->AddField("BASKET_NOTES", $fieldNotes);
	$row->AddField("BASKET_DISCOUNT_PRICE", $fieldDiscountPrice);
	$row->AddField("BASKET_CATALOG_XML_ID", $fieldCatalogXML);
	$row->AddField("BASKET_PRODUCT_XML_ID", $fieldProductXML);
	$row->AddField("BASKET_DISCOUNT_NAME", $fieldDiscountName);
	$row->AddField("BASKET_DISCOUNT_VALUE", $fieldDiscountValue);
	$row->AddField("BASKET_DISCOUNT_COUPON", $fieldDiscountCoupon);
	$row->AddField("BASKET_VAT_RATE", $fieldVatRate);

	if ($bNeedProps)
	{
		$dbProps = CSaleOrderPropsValue::GetOrderProps($arOrder["ID"]);
		while ($arProps = $dbProps->GetNext())
		{
			if (array_key_exists($arProps["ORDER_PROPS_ID"], $arOrderProps) || array_key_exists($arProps["CODE"], $arOrderPropsCode))
			{
				if($arProps["TYPE"] == "MULTISELECT" || $arProps["TYPE"] == "SELECT" || $arProps["TYPE"] == "RADIO")
				{
					if($arProps["TYPE"] == "MULTISELECT")
					{
						$valMulti = "";
						$curVal = explode(",", $arProps["VALUE"]);
						$bNeedLine = false;
						foreach ($curVal as $val)
						{
							if ($bNeedLine)
								$valMulti .= "<hr size=\"1\" width=\"90%\">";
开发者ID:akniyev,项目名称:arteva.ru,代码行数:31,代码来源:order.php

示例8: formAndSendDataToGP

	public function formAndSendDataToGP($type, $options = array(), $arFields) {
		$ID = intVal($options['ID']);
		if ($ID) {
			CModule::IncludeModule('sale');
			$order = CSaleOrder::GetList(array(), array("ID" => $ID), false, false, array("MARKED", "PERSON_TYPE_ID"))->Fetch();
			if ($order['MARKED'] == 'Y') { $order_is_marked = true; } else { $order_is_marked = false; }
			
			if ($arFields['PERSON_TYPE_ID'] > 0) {
				$person_type_id = $arFields['PERSON_TYPE_ID'];
			} elseif ($order['PERSON_TYPE_ID'] > 0) {
				$person_type_id = $order['PERSON_TYPE_ID'];
			}
			
			if ($person_type_id) {
				// get $_POST keys for needed parameters from module options
				/*$keys_list = array(
					'customer_name', 'customer_phone', 'customer_email', 'delivery_address', 'location', 'city',
					'GP_PHONE_ADDITIONAL', 'GP_FLOOR', 'GP_ENTRY', 'GP_INTERCOM_CODE', 'GP_ORDER_ID'
				);*/
                $keys_list = array(
                    'customer_name', 
                    'customer_email', 
                    'customer_phone', 
                    'delivery_city', 
                    'delivery_alt_city',  
                    'delivery_address', 
                    'delivery_address_street', 
                    'delivery_address_house', 
                    'delivery_address_building', 
                    'delivery_address_housing', 
                    'delivery_address_apartment', 
                    'customer_second_phone',  
                    'floor', 
                    'porch', 
                    'intercom_code', 
                    'comments', 
                    //'system_choosen',
                    'gp_order_id_0'
                );
                foreach ($keys_list as $key) {
					$post_key[$key] = COption::GetOptionString(self::$MODULE_ID, 'match_id_'.$person_type_id.'_'.$key);
				}
				$filename = $_SERVER['DOCUMENT_ROOT'] . '/templog.log';
				file_put_contents($filename, var_export($post_key, true), FILE_APPEND | LOCK_EX);
				file_put_contents($filename, var_export($_POST, true), FILE_APPEND | LOCK_EX);
                
                $arOrder = CSaleOrder::GetByID($ID);
                
                if($options["ACTION"] == "ORDER"){
                    //var_dump($arOrder["ACCOUNT_NUMBER"]);die();
                
                    $db_props = CSaleOrderPropsValue::GetOrderProps($ID);
                    $arFields_props = array();
                            
                    while ($arProps = $db_props->Fetch())
                    {
                        $_POST["ORDER_PROP_".$arProps["ORDER_PROPS_ID"]]=$arProps["VALUE"];
                    }
                    $_POST['PAY_SYSTEM_ID'] = $arOrder["PAY_SYSTEM_ID"];
                    
                    $_POST[$post_key['comments']] = $arOrder["USER_DESCRIPTION"];
                }
                
				// get city for delivery_address
				/*if ($_POST[$post_key['delivery_city']]) {
					$city_name = $_POST[$post_key['delivery_city']] . ' ';
				} else*/
                
                if ($_POST[$post_key['delivery_city']] || $_POST['CITY_'.$post_key['delivery_city']]) {
					if ($_POST[$post_key['delivery_city']]) {
						$city_id = $_POST[$post_key['delivery_city']];
					} else {
						$city_id = $_POST['CITY_'.$post_key['delivery_city']];
					}
					$cityRes = CSaleLocation::GetList(
						array(), array("LID" => LANGUAGE_ID, "ID" => $city_id), false, array("nTopCount" => 1), array('CITY_NAME')
					);
					if ($cityAr = $cityRes->Fetch()) {
						$city_name = $cityAr['CITY_NAME'] . ' ';
					} else {
						$city_name = '';
					}
				}
                
                if($_POST[$post_key['delivery_alt_city']]){
                    $city_name = $_POST[$post_key['delivery_alt_city']];
                }
				
				// set parameters
                if($_POST[$post_key['customer_name']]){
	               $post_data['order']['customer_name'] = $_POST[$post_key['customer_name']];
                }
                if($_POST[$post_key['customer_email']]){
	               $post_data['order']['customer_email'] = $_POST[$post_key['customer_email']];
                }elseif($_POST["NEW_BUYER_EMAIL"]){
                    $post_data['order']['customer_email'] = $_POST["NEW_BUYER_EMAIL"];
                }else{
                    //get email from id
                    if($_POST["user_id"]){
                        $user_id = $_POST["user_id"];
//.........这里部分代码省略.........
开发者ID:ASDAFF,项目名称:gpbitrix,代码行数:101,代码来源:CGPWidgetEventHandler.php

示例9: GetMessage

         }
     }
     if (strlen($PRODUCT_XML_ID) <= 0) {
         $PRODUCT_XML_ID = $arBasket["PRODUCT_ID"];
     }
     echo "\t\t\t<" . GetMessage("Article") . " " . GetMessage("Catalog") . "=\"" . $CATALOG_XML_ID . "\" " . GetMessage("Product") . "=\"" . $PRODUCT_XML_ID . "\" " . GetMessage("Unit") . "=\"\" " . GetMessage("Amount") . "=\"" . $arBasket["QUANTITY"] . "\" " . GetMessage("Price") . "=\"" . $arBasket["PRICE"] . "\" " . GetMessage("Sum") . "=\"" . DoubleVal($arBasket["PRICE"]) * IntVal($arBasket["QUANTITY"]) . "\" " . GetMessage("Description") . "=\"" . htmlspecialcharsbx($arBasket["NAME"]) . "\"/>\n";
 }
 echo "\t\t</" . GetMessage("Document") . ">\n";
 if (!in_array("BC" . $f_USER_ID, $arContra)) {
     $arContra[] = "BC" . $f_USER_ID;
     $db_user = CUser::GetByID($f_USER_ID);
     $arUser = $db_user->Fetch();
     $contra_mail = "";
     $contra_name = $arUser["NAME"] . " " . $arUser["LAST_NAME"];
     $contra_other = "";
     $db_props = CSaleOrderPropsValue::GetOrderProps($f_ID);
     while ($arProps = $db_props->Fetch()) {
         if ($arProps["IS_EMAIL"] == "Y") {
             $contra_mail = $arProps["VALUE"];
         }
         if ($arProps["IS_PAYER"] == "Y") {
             $contra_name = $arProps["VALUE"];
         }
         if ($arProps["TYPE"] == "LOCATION") {
             $arLocs = CSaleLocation::GetByID($arProps["VALUE"], LANG);
             $contra_other .= $arProps["PROPERTY_NAME"] . "=" . $arLocs["COUNTRY_NAME"] . " - " . $arLocs["CITY_NAME"];
         } else {
             $contra_other .= $arProps["PROPERTY_NAME"] . "=" . $arProps["VALUE"];
         }
         $contra_other .= " // ";
     }
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:commerceml.php

示例10: OnOrderNewSendEmailHandler


//.........这里部分代码省略.........
                    $value_price = '';
                    if ($arDelivery['PRICE']<=0)
                    {
                        $value .= ', Бесплатно';
                        $value_price = 'Бесплатно';
                    }
                    else
                    {
                        $value .= ', '.SaleFormatCurrency($arDelivery['PRICE'], $arDelivery['CURRENCY']);

                        $value_price = SaleFormatCurrency($arDelivery['PRICE'], $arDelivery['CURRENCY']);

                        $strOrderList .= '<tr><td colspan="3" style="text-align:right;">Стоимость доставки:&nbsp;</td><td style="text-align: center;">'.$value_price.'</td></tr>';
                    }
                    $arFields['DELIVERY'] = '<p><b>Способ доставки:</b> '.$value_name.'</p>';
                    $price_total += $arDelivery['PRICE'];

                    $strOrderList .= '<tr><td colspan="3" style="text-align:right;">Итого:&nbsp;</td><td style="text-align: center;">'.SaleFormatCurrency($price_total, $price_currency).'</td></tr>';

                    $arFields['ALL_PRICE'] = '<p><b>Итого: </b>'.SaleFormatCurrency($price_total, $price_currency).'</p>';
                }
            }
        }


        $strOrderList .= '</tbody>';
        $strOrderList .= '</table>';
        $arFields["ORDER_LIST_NEW"] = $strOrderList;



        // Указываем свойства заказа - Начало
        /* $arProps = array();
         $dbProps = CSaleOrderPropsValue::GetOrderProps($orderID);
         while ($arProp = $dbProps->Fetch())
         {
             $arProps[$arProp['CODE']] = $arProp;

             $val = $arProp['VALUE'];
             if ($arProp['TYPE']=="LOCATION") {
                 $v = CSaleLocation::GetByID($val);
                 $val = $v['CITY_NAME_LANG'];
             } elseif (in_array($arProp['TYPE'], array("SELECT", "MULTISELECT", "RADIO"))) {
                 $v = CSaleOrderPropsVariant::GetByValue($arProp['ORDER_PROPS_ID'], $val);
                 $val = $v['NAME'];
             }

             $arProp['VALUE_FORMATTED'] = $val;

         }*/

        // Получаем список исключенных свойств в зависимости от выбранной службы доставки
        /*$delivery_id = $arOrder['DELIVERY_ID'];
        $EXCLUDE_PROPS = $pre_defined_variables['ORDER_MAKE']["EXCLUDE_PROP_ON_DELIVERY_ID"];
        if (array_key_exists($delivery_id, $EXCLUDE_PROPS))
            $EXCLUDE_PROP = $EXCLUDE_PROPS[$delivery_id];
        else
            $EXCLUDE_PROP = array();
        $EXCLUDE_PROP = array_merge(array('AGREE'), $EXCLUDE_PROP);

        // Выводим свойства
        $strPropsList = '';
        foreach($arProps as $prop_code=>&$arProp)
        {
            if (in_array($prop_code, $EXCLUDE_PROP)) continue;
开发者ID:CheBurashka334,项目名称:zakrepi,代码行数:66,代码来源:function_bitrix.php

示例11: urlencode

	<form method="POST" action="pbrf_orders.php?lang=<?php 
    echo LANGUAGE_ID;
    echo $_GET["return_url"] ? "&amp;return_url=" . urlencode($_GET["return_url"]) : "";
    ?>
&amp;order=<?php 
    echo $_GET["order"];
    ?>
" enctype="multipart/form-data" name="editform">
<?php 
    $tabControl->Begin();
    $tabControl->BeginNextTab();
    //получаем данные по заказу
    $order = CSaleOrder::GetByID($id_order);
    //получаем данные по пользователю
    $user = CUser::GetByID($order["USER_ID"]);
    $props = CSaleOrderPropsValue::GetOrderProps($id_order);
    //получаем данные по заказу
    $fio = $zip = $country = $address = "";
    while (is_array($pr = $props->Fetch())) {
        //отбираем данные по ФИО, индексу и адресу
        if ($pr["CODE"] == "FIO") {
            $fio = $pr["VALUE"];
        }
        if ($pr["CODE"] == "ZIP") {
            $zip = $pr["VALUE"];
        }
        if ($pr["CODE"] == "LOCATION") {
            $country = $pr["VALUE"];
        }
        if ($pr["CODE"] == "ADDRESS") {
            $address = $pr["VALUE"];
开发者ID:ASDAFF,项目名称:bitrix-pbrf,代码行数:31,代码来源:pbrf_order.php

示例12: number_format

        $products[$ii]['ProductName'] = $arItems['NAME'];
        $products[$ii]['ProductPrice'] = number_format($arItems['PRICE'], 2, '.', '');
        $products[$ii]['ProductItemsNum'] = number_format($arItems['QUANTITY'], 2, '.', '');
        $quantitys += $arItems['QUANTITY'];
        $ii++;
    }
}
if ($order_info['PRICE_DELIVERY'] > 0) {
    $products[$ii]['ProductId'] = '00001';
    $products[$ii]['ProductName'] = 'Delivery';
    $products[$ii]['ProductPrice'] = number_format($order_info['PRICE_DELIVERY'], 2, '.', '');
    $products[$ii]['ProductItemsNum'] = number_format(1, 2, '.', '');
    $quantitys += 1;
}
$ii = 0;
$db_props = CSaleOrderPropsValue::GetOrderProps($order_id);
while ($arProps = $db_props->Fetch()) {
    if ($arProps['CODE'] == 'PHONE') {
        $userEnteredFields[$ii]['FieldTag'] = 'PhoneNumber';
        $userEnteredFields[$ii]['FieldValue'] = $arProps['VALUE'];
        $user_phone = $arProps['VALUE'];
    }
    if ($arProps['CODE'] == 'FIO') {
        $DeliveryLastname = $arProps['VALUE'];
    }
    if ($arProps['CODE'] == 'ADDRESS') {
        $DeliveryStreet = $arProps['VALUE'];
    }
    if ($arProps['CODE'] == 'EMAIL') {
        $userEnteredFields[$ii]['FieldTag'] = 'E-Mail';
        $userEnteredFields[$ii]['FieldValue'] = $arProps['VALUE'];
开发者ID:saxum2010,项目名称:kaznachey_Bitrix,代码行数:31,代码来源:payment.php

示例13: elseif

</a> -->
		<?endif?>

	</div>

	<?if(!empty($arResult['ORDERS'])):?>
		<?
		$flag = false; 
		?>
		<?foreach($arResult["ORDER_BY_STATUS"] as $key => $group):?>

			<?foreach($group as $k => $order):?>
				<?
				$deliveryId = false;
				$delivery = false;
				$rs = CSaleOrderPropsValue::GetOrderProps($order['ORDER']['ID']);
				while ($x = $rs->Fetch()) {
					if ($x['CODE'] == 'delivery_id') {
						$deliveryId = $x['VALUE'];
						break;
					}
				}

				if(intval($order["ORDER"]["DELIVERY_ID"])) {
					$delivery = $arResult["INFO"]["DELIVERY"][$order["ORDER"]["DELIVERY_ID"]]["NAME"];
				} elseif(strpos($order["ORDER"]["DELIVERY_ID"], ":") !== false) {
					$arId = explode(":", $order["ORDER"]["DELIVERY_ID"]);
					$delivery = $arResult["INFO"]["DELIVERY_HANDLERS"][$arId[0]]["NAME"] . '(' . $arResult["INFO"]["DELIVERY_HANDLERS"][$arId[0]]["PROFILES"][$arId[1]]["TITLE"] . ')';
				}
				?>
开发者ID:ASDAFF,项目名称:mp,代码行数:30,代码来源:template.php

示例14: obtainProps

 /**
  * Function gets order properties from database
  * @param mixed[] $cached Cached data taken from obtainDataCachedStructure()
  * @return void
  */
 protected function obtainProps(&$cached)
 {
     if (empty($this->dbResult["ID"])) {
         return;
     }
     $props = array();
     $dbOrderProps = CSaleOrderPropsValue::GetOrderProps($this->dbResult["ID"]);
     $iGroup = -1;
     while ($arOrderProps = $dbOrderProps->GetNext()) {
         if (empty($this->arParams["PROP_" . $this->dbResult["PERSON_TYPE_ID"]]) || !in_array($arOrderProps["ORDER_PROPS_ID"], $this->arParams["PROP_" . $this->dbResult["PERSON_TYPE_ID"]])) {
             if ($arOrderProps["ACTIVE"] == "Y" && $arOrderProps["UTIL"] == "N") {
                 $arOrderPropsTmp = $arOrderProps;
                 if ($iGroup != intval($arOrderProps["PROPS_GROUP_ID"])) {
                     $arOrderPropsTmp["SHOW_GROUP_NAME"] = "Y";
                     $iGroup = intval($arOrderProps["PROPS_GROUP_ID"]);
                 }
                 if ($arOrderProps["TYPE"] == "SELECT" || $arOrderProps["TYPE"] == "RADIO") {
                     $arVal = CSaleOrderPropsVariant::GetByValue($arOrderProps["ORDER_PROPS_ID"], $arOrderProps["VALUE"]);
                     $arOrderPropsTmp["VALUE"] = htmlspecialcharsEx($arVal["NAME"]);
                 } elseif ($arOrderProps["TYPE"] == "MULTISELECT") {
                     $arOrderPropsTmp["VALUE"] = "";
                     $curVal = explode(",", $arOrderProps["VALUE"]);
                     for ($i = 0, $intCount = count($curVal); $i < $intCount; $i++) {
                         $arVal = CSaleOrderPropsVariant::GetByValue($arOrderProps["ORDER_PROPS_ID"], $curVal[$i]);
                         if ($i > 0) {
                             $arOrderPropsTmp["VALUE"] .= ", ";
                         }
                         $arOrderPropsTmp["VALUE"] .= htmlspecialcharsEx($arVal["NAME"]);
                     }
                 } elseif ($arOrderProps["TYPE"] == "LOCATION") {
                     $locationName = "";
                     if (CSaleLocation::isLocationProMigrated()) {
                         $locationName = Location\Admin\LocationHelper::getLocationStringById($arOrderProps["VALUE"]);
                     } else {
                         $arVal = CSaleLocation::GetByID($arOrderProps["VALUE"], LANGUAGE_ID);
                         $locationName .= !strlen($arVal["COUNTRY_NAME"]) ? "" : $arVal["COUNTRY_NAME"];
                         if (strlen($arVal["COUNTRY_NAME"]) && strlen($arVal["REGION_NAME"])) {
                             $locationName .= " - " . $arVal["REGION_NAME"];
                         } elseif (strlen($arVal["REGION_NAME"])) {
                             $locationName .= $arVal["REGION_NAME"];
                         }
                         if (strlen($arVal["COUNTRY_NAME"]) || strlen($arVal["REGION_NAME"])) {
                             $locationName .= " - " . $arVal["CITY_NAME"];
                         } elseif (strlen($arVal["CITY_NAME"])) {
                             $locationName .= $arVal["CITY_NAME"];
                         }
                     }
                     $arOrderPropsTmp["VALUE"] = $locationName;
                 } elseif ($arOrderProps["TYPE"] == "FILE") {
                     if (strpos($arOrderProps["VALUE"], ",") !== false) {
                         $fileValue = "";
                         $values = explode(",", $arOrderProps["VALUE"]);
                         if (self::isNonemptyArray($values)) {
                             foreach ($values as $fileId) {
                                 $fileValue .= CFile::ShowFile(trim($fileId), 0, 90, 90, true) . "<br/>";
                             }
                         }
                         $arOrderPropsTmp["VALUE"] = $fileValue;
                     } else {
                         $arOrderPropsTmp["VALUE"] = CFile::ShowFile($arOrderProps["VALUE"], 0, 90, 90, true);
                     }
                 }
                 $props[] = $arOrderPropsTmp;
             }
         }
     }
     $cached["ORDER_PROPS"] = $props;
 }
开发者ID:akniyev,项目名称:itprom_dobrohost,代码行数:73,代码来源:class.php

示例15: array

        }
        
		if ($order = CSaleOrder::GetByID($ID)) {
			if($order['DELIVERY_ID'] == 'goparcel:simple') {
				// status
				if (CGPWidget::StatusExists($json['order']['status'])) {
					$status_match = COption::GetOptionString($moduleID, "status_match_".$json['order']['status']);
					if ($status_match && $status_match != $order['STATUS_ID']) {
						$res = CSaleOrder::StatusOrder($order['ID'], $status_match);
						if (!$res) { $error[] = 'could not change order.status to ['.$status_match.']'; } else {
							$message[] = 'order '.$order['ID'].' changed status to ['.$status_match.']';
						}
					}
				} else { $error[] = 'invalid order.status'; }
				if (SITE_ID && $order['ID']) {
					$order_props_res = CSaleOrderPropsValue::GetOrderProps($order['ID']);
					while ($order_props_ar = $order_props_res->Fetch()) {
						$order_props[] = $order_props_ar;
					}
                    $gp_prop_list = array(
                        'customer_name', 
                        'customer_email', 
                        'customer_phone', 
                        //'index', 
                        //'location', 
                        //'location_city_name', 
                        'delivery_city', 
                        'delivery_address', 
                        'delivery_address_street', 
                        'delivery_address_house', 
                        'delivery_address_building', 
开发者ID:ASDAFF,项目名称:gpbitrix,代码行数:31,代码来源:receive.php


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