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


PHP SoapClient::GetSaleOrder方法代码示例

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


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

示例1: updateorderstatus

 public function updateorderstatus()
 {
     //$from = 'Robin'; // sender
     //$subject = 'ABCD';
     $message = 'Cron Job Running123456';
     // message lines should not exceed 70 characters (PHP rule), so wrap it
     //$message = wordwrap($message, 70);
     // send mail
     $from = 'Arun';
     // sender
     $subject = 'ABCD12345';
     $wsdlUrl = Mage::getStoreConfig('unicom_options/unigroup/uniurl');
     $wsdllUrl = Mage::getStoreConfig('unicom_options/unigroup/unilurl');
     $username = Mage::getStoreConfig('unicom_options/unigroup/uniusername');
     $password = Mage::getStoreConfig('unicom_options/unigroup/unipass');
     /*$wsdlUrl = "https://demo.unicommerce.com/services/soap/uniware15.wsdl";
     	$wsdllUrl = "http://demo.unicommerce.com/services/soap/?version=1.5&facility=01";
     	$username = "karun@unicommerce.com";
     	$password = "unicom"; */
     $soapClient = new SoapClient($wsdlUrl, array('trace' => 1, 'exception' => 0));
     $soapClient->__setLocation($wsdllUrl);
     $strWSSENS = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
     $objSoapVarUser = new SoapVar($username, XSD_STRING, NULL, $strWSSENS, "UserName", $strWSSENS);
     $objSoapVarPass = new SoapVar($password, XSD_STRING, NULL, $strWSSENS, "Password", $strWSSENS);
     $objWSSEAuth = new clsWSSEAuth($objSoapVarUser, $objSoapVarPass);
     $objSoapVarWSSEAuth = new SoapVar($objWSSEAuth, SOAP_ENC_OBJECT, NULL, $strWSSENS, 'UsernameToken', $strWSSENS);
     $objWSSEToken = new clsWSSEToken($objSoapVarWSSEAuth);
     $objSoapVarWSSEToken = new SoapVar($objWSSEToken, SOAP_ENC_OBJECT, NULL, $strWSSENS, 'UsernameToken', $strWSSENS);
     $objSoapVarHeaderVal = new SoapVar($objSoapVarWSSEToken, SOAP_ENC_OBJECT, NULL, $strWSSENS, 'Security', $strWSSENS);
     $objSoapVarWSSEHeader = new SoapHeader($strWSSENS, 'Security', $objSoapVarHeaderVal, true);
     $soapClient->__setSoapHeaders(array($objSoapVarWSSEHeader));
     //Mage::app('default');
     $model = Mage::getModel('rcredit/rcredit');
     $order = new Mage_Sales_Model_Order();
     $order_details = $model->orderids();
     //print_r($order_details);
     $i = 0;
     $check = array();
     $msg = array();
     foreach ($order_details as $details) {
         $msg[] = $details[order_id];
         $shipping = $soapClient->GetSaleOrder(array('SaleOrder' => array('Code' => $details[order_id])));
         //echo '<pre>';
         //print_r($shipping);
         $delivcnt = count($shipping->SaleOrder->ShippingPackages->ShippingPackage);
         foreach ($shipping->SaleOrder->ShippingPackages as $v) {
             $order->loadByIncrementId($details[order_id]);
             $payment = $order->getPayment()->getMethodInstance()->getCode();
             $customer_status = $model->customerstatus($order->getCustomerEmail());
             if ($delivcnt > 1) {
                 $deliverDate = $v[$delivcnt - 1]->DeliveredOn;
                 $vstatus = $v[$delivcnt - 1]->StatusCode;
             } else {
                 $deliverDate = $v->DeliveredOn;
                 $vstatus = $v->StatusCode;
             }
             if ($vstatus == 'DELIVERED') {
                 $day = explode('T', $deliverDate);
                 if ($day[0] >= $customer_status['credit_start_date']) {
                     //echo 'In Second Cycle'.$details[cycle].'-->'.$details[order_id].'-->'.$details[order_value].'-->'.$order->getCustomerEmail().'-->'.$customer_status[credit_cycle].'-->'.$customer_status[utlized_amt];
                     //echo '<br/>';
                     $model->updateordercycle($details[order_id], $customer_status[credit_cycle]);
                 }
                 $model->updateorderdate($details[order_id], $day[0]);
             }
             $i++;
         }
         //mail("arun1711@gmail.com",$subject,$details[order_id],"From: $from\n");
         $order = Mage::getModel('sales/order')->getCollection()->addAttributeToFilter('increment_id', $details[order_id])->getFirstItem();
         if ($order->getStatus() == 'Canceled' || $order->getStatus() == 'canceled') {
             $order->loadByIncrementId($details[order_id]);
             $payment = $order->getPayment()->getMethodInstance()->getCode();
             if ($payment == 'rcredit') {
                 $payment_status = 'Refund';
                 $order_cycle_value = $model->ordercyclehistory($details[order_id]);
                 //Getting the cycle using the order_id.
                 $cycle = $order_cycle_value['cycle'];
                 $customer_email = $order->getCustomerEmail();
                 $grandtotal = round($details[order_value], 2);
                 $customer_status = $model->customerstatus($customer_email);
                 // Getting the customer status from the Shopper Credit Module
                 $customer_credit_limit = $customer_status['credit_limit'];
                 // Getting customer's credit limit.
                 $customer_current_bal = $customer_status['bal_amt'];
                 // Getting customer's current balance
                 $balance_amount = $customer_status['bal_amt'] + $grandtotal;
                 // Calculating the updated balance after sucessful purchase.
                 $utlized_amt = $customer_status['utlized_amt'];
                 // Getting customer's current balance
                 $total_used_amt = $utlized_amt - $grandtotal;
                 // Getting the total utlized amt.
                 $pay_interval = $customer_status['pay_interval'];
                 // Getting customer's payinterval date
                 $expiry_date = $customer_status['enddate'];
                 // Getting expiry date for the customer
                 $action = 'Refund due to cancellation';
                 $todate = date("Y-m-d");
                 $order_status = "Cancel";
                 if ($order_cycle_value['action'] != 'Cancel') {
                     $model->cancelledorderdetails($details[order_id], $total_used_amt, $balance_amount, $action, $order_status);
//.........这里部分代码省略.........
开发者ID:shebin512,项目名称:Magento_Zoff,代码行数:101,代码来源:Updateorderstatus.php

示例2: unishipimport

 public function unishipimport()
 {
     $wsdlUrl = Mage::getStoreConfig('unicom_options/unigroup/uniurl');
     $wsdllUrl = Mage::getStoreConfig('unicom_options/unigroup/unilurl');
     $username = Mage::getStoreConfig('unicom_options/unigroup/uniusername');
     $password = Mage::getStoreConfig('unicom_options/unigroup/unipass');
     $soapClient = new SoapClient($wsdlUrl, array('trace' => 1, 'exception' => 0));
     $soapClient->__setLocation($wsdllUrl);
     $strWSSENS = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
     $objSoapVarUser = new SoapVar($username, XSD_STRING, NULL, $strWSSENS, "UserName", $strWSSENS);
     $objSoapVarPass = new SoapVar($password, XSD_STRING, NULL, $strWSSENS, "Password", $strWSSENS);
     $objWSSEAuth = new clsWSSEAuth($objSoapVarUser, $objSoapVarPass);
     $objSoapVarWSSEAuth = new SoapVar($objWSSEAuth, SOAP_ENC_OBJECT, NULL, $strWSSENS, 'UsernameToken', $strWSSENS);
     $objWSSEToken = new clsWSSEToken($objSoapVarWSSEAuth);
     $objSoapVarWSSEToken = new SoapVar($objWSSEToken, SOAP_ENC_OBJECT, NULL, $strWSSENS, 'UsernameToken', $strWSSENS);
     $objSoapVarHeaderVal = new SoapVar($objSoapVarWSSEToken, SOAP_ENC_OBJECT, NULL, $strWSSENS, 'Security', $strWSSENS);
     $objSoapVarWSSEHeader = new SoapHeader($strWSSENS, 'Security', $objSoapVarHeaderVal, true);
     $soapClient->__setSoapHeaders(array($objSoapVarWSSEHeader));
     $resource = Mage::getSingleton('core/resource');
     $readConnection = $resource->getConnection('core_read');
     $writeConnection = $resource->getConnection('core_write');
     $query = 'SELECT a.*,b.* FROM `sales_flat_order` as a,`unicom_invoice` as b WHERE a.increment_id = b.order_id and b.pdf_complete = "No" and a.state NOT IN ("canceled","pending")';
     $orders = $readConnection->fetchAll($query);
     foreach ($orders as $order) {
         $shipping = $soapClient->GetSaleOrder(array('SaleOrder' => array('Code' => $order['increment_id'])));
         if ($shipping->Successful == 1) {
             $chkshippackages = count(get_object_vars($shipping->SaleOrder->ShippingPackages));
             if ($chkshippackages > 0) {
                 $shippackages = $shipping->SaleOrder->ShippingPackages->ShippingPackage;
                 if (is_array($shippackages)) {
                     foreach ($shippackages as $shippackage) {
                         if ($shippackage->ShipmentCode) {
                             if ($order['ship_code'] == '' && $order['state'] == 'complete') {
                                 $shipSelect = "SELECT ship_code FROM `unicom_invoice` WHERE ship_code != '' and order_id = '" . $order['increment_id'] . "'";
                                 $shipcodes = $readConnection->fetchAll($shipSelect);
                                 if (count($shipcodes) > 0) {
                                     $insertquery = "INSERT INTO `unicom_invoice` (`order_id`, `ship_code`, `state_complete`, `pdf_complete`) VALUES ('" . $order['increment_id'] . "', '" . $shippackage->ShipmentCode . "', 'Yes', 'No')";
                                     $writeConnection->query($insertquery);
                                 } else {
                                     $insertquery = "UPDATE `unicom_invoice` SET state_complete = 'Yes',ship_code = '" . $shippackage->ShipmentCode . "' WHERE order_id = '" . $order['increment_id'] . "'";
                                     $writeConnection->query($insertquery);
                                 }
                             } elseif ($order['ship_code'] == '') {
                                 $shipSelect = "SELECT ship_code FROM `unicom_invoice` WHERE ship_code != '' and order_id = '" . $order['increment_id'] . "'";
                                 $shipcodes = $readConnection->fetchAll($shipSelect);
                                 if (count($shipcodes) > 0) {
                                     $insertquery = "INSERT INTO `unicom_invoice` (`order_id`, `ship_code`, `state_complete`, `pdf_complete`) VALUES ('" . $order['increment_id'] . "', '" . $shippackage->ShipmentCode . "', 'No', 'No')";
                                     $writeConnection->query($insertquery);
                                 } else {
                                     $insertquery = "UPDATE `unicom_invoice` SET ship_code = '" . $shippackage->ShipmentCode . "' WHERE order_id = '" . $order['increment_id'] . "'";
                                     $writeConnection->query($insertquery);
                                 }
                             } elseif ($order['ship_code'] != '' && $order['state'] == 'complete') {
                                 $shipSelect = "SELECT ship_code FROM `unicom_invoice` WHERE ship_code ='" . $shippackage->ShipmentCode . "'";
                                 $shipcodes = $readConnection->fetchAll($shipSelect);
                                 if (count($shipcodes) > 0) {
                                     $insertquery = "UPDATE `unicom_invoice` SET state_complete = 'Yes' WHERE ship_code = '" . $order['ship_code'] . "'";
                                     $writeConnection->query($insertquery);
                                 } else {
                                     $insertquery = "INSERT INTO `unicom_invoice` (`order_id`, `ship_code`, `state_complete`, `pdf_complete`) VALUES ('" . $order['increment_id'] . "', '" . $shippackage->ShipmentCode . "', 'Yes', 'No')";
                                     $writeConnection->query($insertquery);
                                 }
                             } else {
                                 $shipSelect = "SELECT ship_code FROM `unicom_invoice` WHERE ship_code ='" . $shippackage->ShipmentCode . "'";
                                 $shipcodes = $readConnection->fetchAll($shipSelect);
                                 if (count($shipcodes) < 1) {
                                     $insertquery = "INSERT INTO `unicom_invoice` (`order_id`, `ship_code`, `state_complete`, `pdf_complete`) VALUES ('" . $order['increment_id'] . "', '" . $shippackage->ShipmentCode . "', 'Yes', 'No')";
                                     $writeConnection->query($insertquery);
                                 }
                             }
                         }
                     }
                 } else {
                     if ($shippackages->ShipmentCode) {
                         if ($order['ship_code'] == '' && $order['state'] == 'complete') {
                             $insertquery = "UPDATE `unicom_invoice` SET state_complete = 'Yes',ship_code = '" . $shippackages->ShipmentCode . "' WHERE order_id = '" . $order['increment_id'] . "'";
                             $writeConnection->query($insertquery);
                         } elseif ($order['ship_code'] == '') {
                             $insertquery = "UPDATE `unicom_invoice` SET ship_code = '" . $shippackages->ShipmentCode . "' WHERE order_id = '" . $order['increment_id'] . "'";
                             $writeConnection->query($insertquery);
                         } elseif ($order['ship_code'] != '' && $order['state'] == 'complete') {
                             $insertquery = "UPDATE `unicom_invoice` SET state_complete = 'Yes' WHERE order_id = '" . $order['increment_id'] . "'";
                             $writeConnection->query($insertquery);
                         }
                     }
                 }
             }
         }
     }
 }
开发者ID:shebin512,项目名称:Magento_Zoff,代码行数:90,代码来源:Unicom.php

示例3: SoapVar

$objSoapVarPass = new SoapVar($password, XSD_STRING, NULL, $strWSSENS, "Password", $strWSSENS);
$objWSSEAuth = new clsWSSEAuth($objSoapVarUser, $objSoapVarPass);
$objSoapVarWSSEAuth = new SoapVar($objWSSEAuth, SOAP_ENC_OBJECT, NULL, $strWSSENS, 'UsernameToken', $strWSSENS);
$objWSSEToken = new clsWSSEToken($objSoapVarWSSEAuth);
$objSoapVarWSSEToken = new SoapVar($objWSSEToken, SOAP_ENC_OBJECT, NULL, $strWSSENS, 'UsernameToken', $strWSSENS);
$objSoapVarHeaderVal = new SoapVar($objSoapVarWSSEToken, SOAP_ENC_OBJECT, NULL, $strWSSENS, 'Security', $strWSSENS);
$objSoapVarWSSEHeader = new SoapHeader($strWSSENS, 'Security', $objSoapVarHeaderVal, true);
$soapClient->__setSoapHeaders(array($objSoapVarWSSEHeader));
$write->query("truncate `mw_partial_ship`");
$results = $read->fetchAll("select `DisplayOrderCode` from mw_loyalty_invoice_uniware where invoice_done=0");
//$results = $read->fetchAll("select `DisplayOrderCode` from mw_loyalty_invoice_uniware where DisplayOrderCode='150516C-528516'");
if (count($results) > 0) {
    foreach ($results as $rs) {
        $orderIncrementId = $rs['DisplayOrderCode'];
        echo $orderIncrementId;
        $orderDetails = $soapClient->GetSaleOrder(array('SaleOrder' => array('Code' => $orderIncrementId)));
        if (count($orderDetails->SaleOrder->SaleOrderItems->SaleOrderItem) > 0) {
            if (count($orderDetails->SaleOrder->SaleOrderItems->SaleOrderItem) == 1) {
                $temporderDetails = $orderDetails->SaleOrder->SaleOrderItems;
            } else {
                $temporderDetails = $orderDetails->SaleOrder->SaleOrderItems->SaleOrderItem;
            }
            foreach ($temporderDetails as $tm) {
                echo $tm->ItemSKU . " >>> " . $tm->ShippingPackageCode . "<br>";
                $resultqty = $read->fetchRow("select `qty` from `mw_partial_ship` where ItemSKU='" . $tm->ItemSKU . "' and ShippingPackageCode='" . $tm->ShippingPackageCode . "'");
                if ($resultqty['qty'] > 0) {
                    $qty = $resultqty['qty'] + 1;
                    $write->query("update `mw_partial_ship` SET qty={$qty} where ItemSKU='" . $tm->ItemSKU . "' and ShippingPackageCode='" . $tm->ShippingPackageCode . "'");
                } else {
                    $write->query("insert into `mw_partial_ship` (order_id, ItemSKU, ShippingPackageCode, qty) values('" . $orderIncrementId . "', '" . $tm->ItemSKU . "', '" . $tm->ShippingPackageCode . "', 1)");
                }
开发者ID:shebin512,项目名称:Magento_Zoff,代码行数:31,代码来源:mw_partial_ship.php

示例4: runbabyrun

 public function runbabyrun()
 {
     $from = 'Robin';
     // sender
     $subject = 'RunbabyRun';
     $message = 'RunbabyRun';
     // message lines should not exceed 70 characters (PHP rule), so wrap it
     $message = wordwrap($message, 70);
     // send mail
     mail("raphaelbabugeorge@gmail.com", $subject, $message, "From: {$from}\n");
     $wsdlUrl = Mage::getStoreConfig('unicom_options/unigroup/uniurl');
     $wsdllUrl = Mage::getStoreConfig('unicom_options/unigroup/unilurl');
     $username = Mage::getStoreConfig('unicom_options/unigroup/uniusername');
     $password = Mage::getStoreConfig('unicom_options/unigroup/unipass');
     /*$wsdlUrl = "https://demo.unicommerce.com/services/soap/uniware15.wsdl";
     		$wsdllUrl = "http://demo.unicommerce.com/services/soap/?version=1.5&facility=01";
     		$username = "karun@unicommerce.com";
     		$password = "unicom"; */
     $soapClient = new SoapClient($wsdlUrl, array('trace' => 1, 'exception' => 0));
     $soapClient->__setLocation($wsdllUrl);
     $strWSSENS = "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
     $objSoapVarUser = new SoapVar($username, XSD_STRING, NULL, $strWSSENS, "UserName", $strWSSENS);
     $objSoapVarPass = new SoapVar($password, XSD_STRING, NULL, $strWSSENS, "Password", $strWSSENS);
     $objWSSEAuth = new clsWSSEAuth($objSoapVarUser, $objSoapVarPass);
     $objSoapVarWSSEAuth = new SoapVar($objWSSEAuth, SOAP_ENC_OBJECT, NULL, $strWSSENS, 'UsernameToken', $strWSSENS);
     $objWSSEToken = new clsWSSEToken($objSoapVarWSSEAuth);
     $objSoapVarWSSEToken = new SoapVar($objWSSEToken, SOAP_ENC_OBJECT, NULL, $strWSSENS, 'UsernameToken', $strWSSENS);
     $objSoapVarHeaderVal = new SoapVar($objSoapVarWSSEToken, SOAP_ENC_OBJECT, NULL, $strWSSENS, 'Security', $strWSSENS);
     $objSoapVarWSSEHeader = new SoapHeader($strWSSENS, 'Security', $objSoapVarHeaderVal, true);
     $soapClient->__setSoapHeaders(array($objSoapVarWSSEHeader));
     $count = "";
     $flag = 0;
     umask(0);
     Mage::app('default');
     $model = Mage::getModel('rcredit/rcredit');
     $todate = date("Y-m-d");
     $start_date_month = date('Y-m-02', strtotime($todate));
     $j = 0;
     $customer_details = $model->customerdetails();
     //echo '<pre>';
     //print_r($customer_details);
     $date = new DateTime($start_date_month);
     //if($todate == $start_date_month)
     //{
     for ($j = 0; $j < count($customer_details); $j++) {
         $order_details = $model->orderhistory($customer_details[$j]['email'], $customer_details[$j]['credit_cycle'] - 1);
         //print_r($order_details);die;
         $new_cycle = $customer_details[$j]['credit_cycle'] + 1;
         $month = $date->format("m");
         $year = $date->format("Y");
         $days_in_month = date('t');
         $payment_days = $days_in_month + 0 + $customer_details[$j]['pay_interval'];
         //days in current month + 2 days + pay interval days
         $expiry_date = date('Y-m-d', strtotime('+' . $days_in_month . ' days', strtotime($start_date_month)));
         // Getting the credit expiry date
         $payment_date = date('Y-m-d', strtotime('+' . $payment_days . ' days', strtotime($start_date_month)));
         // Getting the payment expiry date
         $sub_total_final = array();
         $order_ids = array();
         $subtotal = 0;
         $i = 0;
         if ($order_details != NULL) {
             foreach ($order_details as $details) {
                 $order = Mage::getModel('sales/order')->load($details['order_id'], 'increment_id');
                 $items = $order->getAllItems();
                 foreach ($items as $item) {
                     $itemcount = $item->getQtyOrdered();
                     $item_count = $item_count + $itemcount;
                 }
                 $deliverydate = $model->deliverydate($details['order_id']);
                 foreach ($deliverydate as $delivery) {
                     if (($order->getStatus() == 'Complete' || $order->getStatus() == 'complete') && $delivery[order_complete_date] < $start_date_month) {
                         $order_ids[$i] = trim($details['order_id']);
                         $shipping = $soapClient->GetSaleOrder(array('SaleOrder' => array('Code' => $order_ids[$i])));
                         if ($item_count == 1) {
                             foreach ($shipping->SaleOrder->SaleOrderItems as $SaleOrderItem) {
                                 if (trim($SaleOrderItem->StatusCode) == 'DELIVERED' || $SaleOrderItem->StatusCode == 'DELIVERED') {
                                     $total = $SaleOrderItem->SellingPrice;
                                     $subtotal = $subtotal + $total;
                                 }
                             }
                         } elseif ($item_count > 1) {
                             foreach ($shipping->SaleOrder->SaleOrderItems->SaleOrderItem as $v) {
                                 if (trim($v->StatusCode) == 'DELIVERED' || $v->StatusCode == 'DELIVERED') {
                                     $total = $v->SellingPrice;
                                     $subtotal = $subtotal + $total;
                                 }
                             }
                         }
                         round($subtotal, 2);
                         $deciaml_pos = explode('.', $subtotal);
                         if ($deciaml_pos[1] >= 5) {
                             $subtotal = ceil($subtotal);
                         } elseif ($deciaml_pos[1] < 5) {
                             $subtotal = floor($subtotal);
                         }
                         $sub_total_final[$i] = $subtotal;
                         $i++;
                         $subtotal = 0;
                     }
//.........这里部分代码省略.........
开发者ID:shebin512,项目名称:Magento_Zoff,代码行数:101,代码来源:ReportController.php

示例5: clsWSSEAuth

$objWSSEAuth = new clsWSSEAuth($objSoapVarUser, $objSoapVarPass);
$objSoapVarWSSEAuth = new SoapVar($objWSSEAuth, SOAP_ENC_OBJECT, NULL, $strWSSENS, 'UsernameToken', $strWSSENS);
$objWSSEToken = new clsWSSEToken($objSoapVarWSSEAuth);
$objSoapVarWSSEToken = new SoapVar($objWSSEToken, SOAP_ENC_OBJECT, NULL, $strWSSENS, 'UsernameToken', $strWSSENS);
$objSoapVarHeaderVal = new SoapVar($objSoapVarWSSEToken, SOAP_ENC_OBJECT, NULL, $strWSSENS, 'Security', $strWSSENS);
$objSoapVarWSSEHeader = new SoapHeader($strWSSENS, 'Security', $objSoapVarHeaderVal, true);
$soapClient->__setSoapHeaders(array($objSoapVarWSSEHeader));
Mage::app('default');
$model = Mage::getModel('rcredit/rcredit');
$order = new Mage_Sales_Model_Order();
$order_details = $model->orderids();
//print_r($order_details);
$i = 0;
$check = array();
foreach ($order_details as $details) {
    $shipping = $soapClient->GetSaleOrder(array('SaleOrder' => array('Code' => $details[order_id])));
    //echo '<pre>';
    //print_r($shipping);
    foreach ($shipping->SaleOrder->ShippingPackages as $v) {
        $order->loadByIncrementId($details[order_id]);
        $payment = $order->getPayment()->getMethodInstance()->getCode();
        $customer_status = $model->customerstatus($order->getCustomerEmail());
        if ($v->StatusCode == 'DELIVERED') {
            $day = explode('T', $v->DeliveredOn);
            if ($day[0] >= $customer_status['credit_start_date']) {
                //echo 'In Second Cycle'.$details[cycle].'-->'.$details[order_id].'-->'.$details[order_value].'-->'.$order->getCustomerEmail().'-->'.$customer_status[credit_cycle].'-->'.$customer_status[utlized_amt];
                //echo '<br/>';
                $model->updateordercycle($details[order_id], $customer_status[credit_cycle]);
            }
            $model->updateorderdate($details[order_id], $day[0]);
        }
开发者ID:shebin512,项目名称:Magento_Zoff,代码行数:31,代码来源:updateorderstatus.php


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