當前位置: 首頁>>代碼示例>>PHP>>正文


PHP osC_Order::hasPaymentMethod方法代碼示例

本文整理匯總了PHP中osC_Order::hasPaymentMethod方法的典型用法代碼示例。如果您正苦於以下問題:PHP osC_Order::hasPaymentMethod方法的具體用法?PHP osC_Order::hasPaymentMethod怎麽用?PHP osC_Order::hasPaymentMethod使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在osC_Order的用法示例。


在下文中一共展示了osC_Order::hasPaymentMethod方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: loadOrder

 function loadOrder()
 {
     global $toC_Json;
     $osC_Order = new osC_Order(isset($_REQUEST['orders_id']) ? $_REQUEST['orders_id'] : null);
     require_once '../includes/classes/customer.php';
     $osC_Customer = new osC_Customer();
     $osC_Customer->setCustomerData($osC_Order->getCustomersID());
     $enable_store_credit = false;
     if ($osC_Order->isUseStoreCredit() || $osC_Customer->hasStoreCredit()) {
         $enable_store_credit = true;
     }
     $data = array('customers_name' => $osC_Order->_customer['name'], 'currency' => $osC_Order->getCurrency(), 'email_address' => $osC_Order->_customer['email_address'], 'coupon_code' => $osC_Order->_coupon_code, 'payment_method' => $osC_Order->getPaymentModule(), 'use_store_credit' => $osC_Order->isUseStoreCredit(), 'has_payment_method' => $osC_Order->hasPaymentMethod(), 'enable_store_credit' => $enable_store_credit, 'gift_wrapping' => $osC_Order->_customer['gift_wrapping'] == '1' ? true : false, 'wrapping_message' => $osC_Order->_customer['wrapping_message'], 'billing_address' => str_replace(',', ' ', $osC_Order->getBilling('name')) . ',' . $osC_Order->getBilling('company') . ',' . $osC_Order->getBilling('street_address') . ',' . $osC_Order->getBilling('suburb') . ',' . $osC_Order->getBilling('city') . ',' . $osC_Order->getBilling('postcode') . ',' . $osC_Order->getBilling('state') . ',' . $osC_Order->getBilling('country_title'), 'shipping_address' => str_replace(',', ' ', $osC_Order->getDelivery('name')) . ',' . $osC_Order->getDelivery('company') . ',' . $osC_Order->getDelivery('street_address') . ',' . $osC_Order->getDelivery('suburb') . ',' . $osC_Order->getDelivery('city') . ',' . $osC_Order->getDelivery('postcode') . ',' . $osC_Order->getDelivery('state') . ',' . $osC_Order->getDelivery('country_title'));
     unset($_SESSION['osC_Customer_data']);
     $response = array('success' => true, 'data' => $data);
     echo $toC_Json->encode($response);
 }
開發者ID:Doluci,項目名稱:tomatocart,代碼行數:16,代碼來源:orders.php


注:本文中的osC_Order::hasPaymentMethod方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。