function pre_confirmation_check() { global $cartID, $cart, $order_total_modules, $order_totals, $order; if (empty($cart->cartID)) { $cartID = $cart->cartID = $cart->generate_cart_id(); } if (!tep_session_is_registered('cartID')) { tep_session_register('cartID'); } order_process($send_mail = false, $status = $this->order_status); }
function pre_confirmation_check() { global $order_total_modules, $order_totals, $order; require_once DIR_WS_CLASSES . 'order_total.php'; //if ($_SERVER['REMOTE_ADDR'] == '91.183.44.122') { if (count($order_total_modules) < 1 || count($order_totals) < 1) { $order_total_modules = new order_total(); $order_totals = $order_total_modules->process(); } //echo '<pre>'; //print_r($order_totals); //die(print_r($order_total_modules)); //} //$order_totals = $order_total_modules->process(); order_process(false, $this->order_status); return false; }