Пример #1
0
   echo '$order_billing_lname: '.$order_billing_lname.'<br />';
   echo '$order_billing_fullname: '.$order_billing_fullname.'<br />';
   echo '$order_billing_email: '.$order_billing_email.'<br />';
   echo '$order_billing_phone: '.$order_billing_phone.'<br />';
   echo '$order_billing_address: '.$order_billing_address.'<br />';
   echo '$order_billing_country: '.$order_billing_country.'<br />';
   echo '$order_billing_province: '.$order_billing_province.'<br />';
   echo '$order_billing_city: '.$order_billing_city.'<br />';
   echo '$order_billing_postal: '.$order_billing_postal.'<br />';
   echo '<pre>';
   print_r($_POST);
   echo '</pre>';
   exit;*/
 /* --- INSERT ORDER --- */
 //$_checkout_update->insertOrder($order_number, $order_billing_fname, $order_billing_lname, $order_billing_fullname, $order_billing_email, $order_billing_phone, $order_ship_fname, $order_ship_lname, $order_ship_phone, $order_ship_address, $order_ship_country, $order_ship_province, $order_ship_city, $order_ship_postal, $order_ship_method, $order_ship_gift, $order_ship_gift_msg, $order_payment_type, $order_payment_method, $order_status, $order_payment, $order_fulfillment, $purchase_amount, $purchase_shipping, $purchase_discount, $purchase_voucher, $purchase_total, $order_date, $order_open_date, $purchase_cancelled, $purchase_closed, $confirm_type, $confirm_bank, $confirm_name, $confirm_amount);
 $_checkout_update->insertOrder($order_number, $order_billing_fname, $order_billing_lname, $order_billing_fullname, $order_billing_email, $order_billing_phone, $order_billing_address, $order_billing_country, $order_billing_province, $order_billing_city, $order_billing_postal, $order_ship_fname, $order_ship_lname, $order_ship_phone, $order_ship_address, $order_ship_country, $order_ship_province, $order_ship_city, $order_ship_postal, $order_ship_method, $order_ship_gift, $order_ship_gift_msg, $order_payment_type, $order_payment_method, $order_status, $order_payment, $order_fulfillment, $confirm_type, $purchase_amount, $purchase_shipping, $purchase_discount, $purchase_voucher, $purchase_total, $order_date, $order_open_date, $purchase_cancelled, $purchase_closed, $confirm_bank, $confirm_name, $confirm_amount);
 $get_order_id = $_checkout_get->get_latest_order();
 $data_order = $_checkout_get->get_latest_order_data($get_order_id->latest_order_id);
 /* --- START: CURRENCY MODULE --- */
 $currency = $_SESSION['module']['dual_currency'];
 if ($currency == 1) {
     $currency_rate = 0;
 } else {
     $currency_rate = $_global_general->currency_rate;
 }
 $currency = filter_var($currency, FILTER_SANITIZE_NUMBER_INT);
 $_checkout_update->updateOrderCurrency($currency, $_global_general->currency_rate, $get_order_id->latest_order_id);
 /* --- END: CURRENCY MODULE --- */
 /* --- START: VOUCHER MODULE --- */
 if (isset($_SESSION['voucher'])) {
     $voucher_code = $_SESSION['voucher']['code'][0];