本文整理匯總了PHP中comquick2cartHelper::getOrderInfo方法的典型用法代碼示例。如果您正苦於以下問題:PHP comquick2cartHelper::getOrderInfo方法的具體用法?PHP comquick2cartHelper::getOrderInfo怎麽用?PHP comquick2cartHelper::getOrderInfo使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類comquick2cartHelper
的用法示例。
在下文中一共展示了comquick2cartHelper::getOrderInfo方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getorderHTML
/**
*Function used to get Oder HTML
*
* @param INT $order_id Order ID
* @param INT $data Order data
*
* @return Array
*
* @since 1.0.0
*/
public function getorderHTML($order_id, $data)
{
$comquick2cartHelper = new comquick2cartHelper();
$order = $orderWholeDetail = $comquick2cartHelper->getOrderInfo($order_id);
$this->payhtml = "";
// Paymodel is uesed in included layout
JLoader::import('payment', JPATH_SITE . DS . 'components' . DS . 'com_quick2cart' . DS . 'models');
$paymodel = new Quick2cartModelpayment();
if (!empty($order)) {
$this->order_authorized = $comquick2cartHelper->getorderAuthorization($order["order_info"][0]->user_id);
if (is_array($order)) {
$this->orderinfo = $order['order_info'];
$this->orderitems = $order['items'];
/* $payhtml = $model->getpayHTML($order['order_info'][0]->processor,$order_id);
if($this->orderinfo[0]->processor=="FreeCheckout")
{
$plgname = JText::_('COM_QUICK2CART_FREE_CHCKOUT');
$this->orderinfo[0]->processor = JText::_('COM_QUICK2CART_FREE_CHCKOUT');
@$this->payhtml=$this->getFreeOrderHtml($order_id);
}
else
{
$payhtml = $paymodel->getHTML($this->orderinfo[0]->processor,$order_id);
@$this->payhtml=$payhtml[0];
}*/
$data['payhtml'] = $this->payhtml;
// used in payment.php
} elseif ($order == 0) {
$this->undefined_orderid_msg = 1;
}
} else {
$this->noOrderDetails = 1;
}
$orders_site = '1';
$this->orders_site = $orders_site;
$user = JFactory::getUser();
$this->qtcSystemEmails = 1;
$app = JFactory::getApplication();
$view = $comquick2cartHelper->getViewpath('cartcheckout', 'ordersummary');
ob_start();
include $view;
$html = ob_get_contents();
ob_end_clean();
$data['orderHTML'] = $html;
return $data;
}