本文整理匯總了PHP中order::query_mail方法的典型用法代碼示例。如果您正苦於以下問題:PHP order::query_mail方法的具體用法?PHP order::query_mail怎麽用?PHP order::query_mail使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類order
的用法示例。
在下文中一共展示了order::query_mail方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
$zco_notifier->notify('NOTIFY_CHECKOUT_PROCESS_AFTER_ORDER_TOTALS_PROCESS');
if (!isset($_SESSION['payment']) && $credit_covers === FALSE) {
zen_redirect(zen_href_link(FILENAME_DEFAULT));
}
// load the before_process function from the payment modules
$payment_modules->before_process();
$zco_notifier->notify('NOTIFY_CHECKOUT_PROCESS_AFTER_PAYMENT_MODULES_BEFOREPROCESS');
if ($_SESSION['payment'] == 'alipay_forcard') {
if (isset($_SESSION['alipay_forcard_success_order_id'])) {
$_order_id = (int) $_SESSION['alipay_forcard_success_order_id'];
$db->Execute('update ' . TABLE_ORDERS . ' set last_modified=now(), orders_status = ' . MODULE_PAYMENT_ALIPAYFOR_ORDER_STATUS_ID . ' where orders_id = ' . $_order_id);
$sql_data_array = array('orders_id' => $_order_id, 'orders_status_id' => MODULE_PAYMENT_ALIPAYFOR_ORDER_STATUS_ID, 'date_added' => 'now()', 'comments' => '', 'customer_notified' => 1);
zen_db_perform(TABLE_ORDERS_STATUS_HISTORY, $sql_data_array);
// send mail
$insert_id = $_order_id;
$order->query_mail($insert_id);
$order->send_order_email($insert_id, 2);
// clear session
unset($_SESSION['alipay_forcard_success_order_id']);
if (isset($_SESSION['alipay_forcard_pending_order_id'])) {
unset($_SESSION['alipay_forcard_pending_order_id']);
}
} else {
zen_redirect(zen_href_link(FILENAME_DEFAULT));
}
} else {
// create the order record
$insert_id = $order->create($order_totals, 2);
$zco_notifier->notify('NOTIFY_CHECKOUT_PROCESS_AFTER_ORDER_CREATE');
$payment_modules->after_order_create($insert_id);
$zco_notifier->notify('NOTIFY_CHECKOUT_PROCESS_AFTER_PAYMENT_MODULES_AFTER_ORDER_CREATE');