if (defined('SHIPPING_ALLOW_UNDEFINED_ZONES') && SHIPPING_ALLOW_UNDEFINED_ZONES == 'False') { unset($_SESSION['shipping']); } else { $_SESSION['shipping'] = false; OSCOM::redirect('checkout_payment.php', '', 'SSL'); } } } // get all available shipping quotes $quotes = $shipping_modules->quote(); // if no shipping method has been selected, automatically select the first method. // if the modules status was changed when none were available, to save on implementing // a javascript force-selection method, also automatically select the first shipping // method if more than one module is now enabled if (!isset($_SESSION['shipping']) || isset($_SESSION['shipping']) && $_SESSION['shipping'] === false && tep_count_shipping_modules() > 1) { $_SESSION['shipping'] = $shipping_modules->get_first(); } require DIR_WS_LANGUAGES . $_SESSION['language'] . '/checkout_shipping.php'; if (defined('SHIPPING_ALLOW_UNDEFINED_ZONES') && SHIPPING_ALLOW_UNDEFINED_ZONES == 'False' && (!isset($_SESSION['shipping']) || $_SESSION['shipping'] === false)) { $messageStack->add_session('checkout_address', ERROR_NO_SHIPPING_AVAILABLE_TO_SHIPPING_ADDRESS); OSCOM::redirect('checkout_shipping_address.php', '', 'SSL'); } $breadcrumb->add(NAVBAR_TITLE_1, OSCOM::link('checkout_shipping.php', '', 'SSL')); $breadcrumb->add(NAVBAR_TITLE_2, OSCOM::link('checkout_shipping.php', '', 'SSL')); require 'includes/template_top.php'; ?> <div class="page-header"> <h1><?php echo HEADING_TITLE; ?>