/* One Page Checkout - END */ } if (tep_not_null(MODULE_PAYMENT_INSTALLED) && !tep_session_is_registered('payment')) { tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL')); } // avoid hack attempts during the checkout procedure by checking the internal cartID if (isset($cart->cartID) && tep_session_is_registered('cartID')) { if ($cart->cartID != $cartID) { tep_redirect(tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')); } } require bts_select('language', FILENAME_CHECKOUT_PROCESS); /* One Page Checkout - BEGIN */ if (ONEPAGE_CHECKOUT_ENABLED == 'True') { require 'includes/classes/onepage_checkout.php'; $onePageCheckout = new osC_onePageCheckout(); } /* One Page Checkout - END */ // load selected payment module require DIR_WS_CLASSES . 'payment.php'; // LINE ADDED: MOD - CREDIT CLASS Gift Voucher Contribution if ($credit_covers) { $payment = 'credit_covers'; } $payment_modules = new payment($payment); // load the selected shipping module require DIR_WS_CLASSES . 'shipping.php'; $shipping_modules = new shipping($shipping); require DIR_WS_CLASSES . 'order.php'; $order = new order(); /* One Page Checkout - BEGIN */
require 'includes/application_top.php'; /* One Page Checkout - BEGIN */ // if the customer is not logged on, redirect them to the shopping cart page // if (!tep_session_is_registered('customer_id')) { // tep_redirect(tep_href_link(FILENAME_SHOPPING_CART)); // } if (ONEPAGE_CHECKOUT_ENABLED == 'True') { if (!tep_session_is_registered('onepage')) { if (!tep_session_is_registered('customer_id')) { tep_redirect(tep_href_link(FILENAME_SHOPPING_CART)); } } else { require bts_select('language', FILENAME_CHECKOUT); require_once 'includes/functions/password_funcs.php'; require 'includes/classes/onepage_checkout.php'; $onePageCheckout = new osC_onePageCheckout(); $onePageCheckout->createCustomerAccount(); } } else { if (!tep_session_is_registered('customer_id')) { tep_redirect(tep_href_link(FILENAME_SHOPPING_CART)); } } /* One Page Checkout - END */ if (isset($_GET['action']) && $_GET['action'] == 'update') { $notify_string = ''; if (isset($_POST['notify']) && !empty($_POST['notify'])) { $notify = $_POST['notify']; if (!is_array($notify)) { $notify = array($notify); }
} } if (isset($_GET['rType'])) { //header('content-type: text/html; charset=' . CHARSET); } //if(isset($_REQUEST['gv_redeem_code']) && tep_not_null($_REQUEST['gv_redeem_code']) && $_REQUEST['gv_redeem_code'] == 'redeem code'){ if (isset($_REQUEST['gv_redeem_code']) && tep_not_null($_REQUEST['gv_redeem_code'])) { $_REQUEST['gv_redeem_code'] = ''; $_POST['gv_redeem_code'] = ''; } if (isset($_REQUEST['coupon']) && tep_not_null($_REQUEST['coupon']) && $_REQUEST['coupon'] == 'redeem code') { $_REQUEST['coupon'] = ''; $_POST['coupon'] = ''; } require 'includes/classes/onepage_checkout.php'; $onePageCheckout = new osC_onePageCheckout(); if (!isset($_GET['rType']) && !isset($_GET['action']) && !isset($_POST['action']) && !isset($_GET['error_message']) && !isset($_GET['payment_error'])) { $onePageCheckout->init(); } //BOF KGT if (MODULE_ORDER_TOTAL_DISCOUNT_COUPON_STATUS == 'true') { if (isset($_POST['code'])) { if (!tep_session_is_registered('coupon')) { tep_session_register('coupon'); } $coupon = $_POST['code']; } } //EOF KGT require DIR_WS_CLASSES . 'order.php'; $order = new order();