本文整理匯總了PHP中order::orderRefNumber方法的典型用法代碼示例。如果您正苦於以下問題:PHP order::orderRefNumber方法的具體用法?PHP order::orderRefNumber怎麽用?PHP order::orderRefNumber使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類order
的用法示例。
在下文中一共展示了order::orderRefNumber方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: orderCreate
function orderCreate($orderId)
{
$systemSetting = new systemSetting();
$order = new order();
$customer = new customer();
$currency_object = new CurrencyWord();
$currency = new currency();
$orderProduct = new orderProduct();
$payment = new payment();
$country = new country();
$order->setOrderId($orderId);
$order->extractor($order->getOrderById());
$orderProduct->setOrderPOrderId($order->orderId());
$orderProduct_rows = $orderProduct->getProductsByOrderId();
$payment->setPaymentOrderId($order->orderId());
$result = $orderProduct->getTotalDetailByOrderId();
$systemSetting->extractor($systemSetting->getSettings());
$customer->setCustomerId($order->orderCustomerId());
$customer->extractor($customer->getCustomerById());
$currency->setCurrId(1);
$currencyName = $currency->getCurrencyNameById();
$country->setCountryId($order->orderDeliveryCity());
$countryName = $country->getCountryNameById();
$filename = $systemSetting->sySettingDocumentName() . 'Invoice_' . $order->orderInvoiceRefNumber() . '.pdf';
$subject = $systemSetting->sySettingCompanyName() . " - New Order Place....!";
$strContent = '
<table width="800" border="0" style="font-family:Arial, Helvetica, sans-serif; background:#eee; font-size:12px; color:#333333;">
<tr>
<td colspan="3" rowspan="8" align="left" valign="top">
<img src="' . DOC_ROOT . 'uplode-img/company-logo/' . $systemSetting->sySettingCompanyLogo() . '" />
</br>
<div style="padding-left:20px;font-size:16px; font-weight:bold; margin-bottom:8px;margin-top:20px;">' . $systemSetting->sySettingCompanyName() . ' </div>
<div style="padding-left:30px;margin-bottom:5px;font-size:10px;font-size:13px;">' . $systemSetting->sySettingCompanyAddress() . '</div>
<div style="padding-left:30px;margin-bottom:5px;font-size:10px;font-size:13px;">Telephone : ' . $systemSetting->sySettingCompanyPhon() . '</div>
<div style="padding-left:30px;margin-bottom:5px;font-size:10px;font-size:13px;">Email : ' . $systemSetting->sySettingCompanyEmail() . '</div>
</td>
<td colspan="3" bgcolor="#CC0000" style="color:#FFF; font-size:14px; padding:5px; text-align:right; font-weight:700; letter-spacing:1px;">C u s t o m e r I n v o i c e</td>
</tr>
<tr>
<td > </td>
<td colspan="2"> </td>
</tr>
<tr>
<td > </td>
<td colspan="2"> </td>
</tr>
<tr>
<td> </td>
<td colspan="2"> </td>
</tr>
<tr>
<td style="padding:3px; border-bottom:1px #484848 dotted;"><div style=" width:80px;background-color:#ddd; float:left; margin-top:2px; padding:2px 5px;">Date</div></td>
<td colspan="2" style="padding:3px; border-bottom:1px #484848 dotted;text-align:right;">' . date('l jS \of F Y ', strtotime($order->orderCreatedDate())) . '</td>
</tr>
<tr>
<td style="padding:3px; border-bottom:1px #484848 dotted;"><div style=" width:80px;background-color:#ddd; float:left; margin-top:2px; padding:2px 5px;">Invoice No</div></td>
<td colspan="2" style="padding:3px; border-bottom:1px #484848 dotted;text-align:right;">' . $order->orderInvoiceRefNumber() . '</td>
</tr>
<tr>
<td style="padding:3px; border-bottom:1px #484848 dotted;"><div style=" width:80px;background-color:#ddd; float:left; margin-top:2px; padding:2px 5px;">Order No</div></td>
<td colspan="2" style="padding:3px; border-bottom:1px #484848 dotted;text-align:right;">' . $order->orderRefNumber() . '</td>
</tr>
<tr>
<td colspan="3" > </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td colspan="6" bgcolor="#333333" style="color:#fff; padding:3px 0 3px 8px; font-weight:bold; font-size:13px;">To</td>
</tr>
<tr>
<td colspan="6" style="padding:3px; border-bottom:1px #484848 dotted;">
<div style="margin-bottom:5px; margin-top:5px; font-weight:700;">' . $customer->customerName() . ' </div>
<div style="font-size:10px;font-size:10px;">' . $customer->customerAddress() . '</div></td>
</tr>
<tr>
<td colspan="6"> </td>
</tr>
<tr>
<td width="19%" align="center" bgcolor="#333333" style="color:#fff; padding:3px 0 3px 8px; font-weight:bold; font-size:13px; width:5%;">No</td>
<td width="11%" align="center" bgcolor="#333333" style="color:#fff; padding:3px 0 3px 8px; font-weight:bold; font-size:13px; width:15%">Item Code</td>
//.........這裏部分代碼省略.........