/* 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);
        }
        for ($i = 0, $n = sizeof($notify); $i < $n; $i++) {