本文整理汇总了PHP中order::query方法的典型用法代码示例。如果您正苦于以下问题:PHP order::query方法的具体用法?PHP order::query怎么用?PHP order::query使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类order
的用法示例。
在下文中一共展示了order::query方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: unset
if ($credit_covers === TRUE) {
$order->info['payment_method'] = $order->info['payment_module_code'] = '';
}
$zco_notifier->notify('NOTIFY_CHECKOUT_PROCESS_BEFORE_ORDER_TOTALS_PROCESS');
$order_totals = $order_total_modules->process();
$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 = $_SESSION['alipay_forcard_success_order_id'];
$order->query($_order_id);
$db->Execute('update ' . TABLE_ORDERS . ' set last_modified=now(), orders_status = ' . MODULE_PAYMENT_ALIPAYFOR_ORDER_STATUS_ID . ' where orders_id = ' . (int) $_order_id);
$insert_id = $_order_id;
unset($_SESSION['alipay_forcard_success_order_id']);
if (isset($_SESSION['alipay_forcard_pending_order_id'])) {
unset($_SESSION['alipay_forcard_pending_order_id']);
}
$order->send_order_email($insert_id, 2);
} 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);
示例2: explode
$lmi_hash = $_POST['LMI_HASH'];
} else {
$lmi_hash = $_GET['LMI_HASH'];
}
if (isset($_POST['LMI_SECRET_KEY'])) {
$lmi_secret_key = $_POST['LMI_SECRET_KEY'];
} else {
$lmi_secret_key = $_GET['LMI_SECRET_KEY'];
}
$p = explode("-", base64_decode($custom));
$u_id = $p[1];
$item = $p[2];
$cost = $p[3];
require DIR_WS_CLASSES . 'order.php';
$order = new order();
$order->query($item);
$customer_id = $order->customer['id'];
/*echo $order->info['total'] * $currencies->get_value('RUR');
echo '<br>'. $customer_id;*/
$err = 0;
$err_text = '';
// Если такой товар не обнаружен, то выводим ошибку и прерываем работу скрипта.
if ($customer_id == '' && $customer_id != $u_id) {
$err = 1;
$err_text = 'ERR: НЕТ ТАКОГО ЗАКАЗА на VAM' . '| ' . $item . ' | - |' . $customer_id;
}
//проверяем ID магазина
if ($lmi_payee_purse != MODULE_PAYMENT_ZPAYMENT_LMI_PAYEE_PURSE) {
$err = 3;
$err_text = 'ERR: НЕВЕРЕН ID МАГАЗИНА : ' . $lmi_payee_purse;
}