include('includes/application_top.php'); ?> if (getenv(HTTPS)) { $connection = 'SSL'; } else { $connection = 'NONSSL'; } if ($cart->count_contents() == 0) { header('Location: ' . tep_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL')); tep_exit(); } if (!tep_session_is_registered('customer_id')) { header('Location: ' . tep_href_link(FILENAME_LOGIN, 'origin=' . FILENAME_CHECKOUT_PAYMENT . '&connection=' . $connection, 'NONSSL')); tep_exit(); } $sendto = $HTTP_POST_VARS['sendto']; if ($sendto == '') { $sendto = '0'; $shipping_quote_all = '1'; } if ($sendto == '0') { $address = tep_db_query("select customers_postcode as postcode, customers_country_id as country_id from customers where customers_id = '" . $customer_id . "'"); } else { $address = tep_db_query("select entry_postcode as postcode, entry_country_id as country_id from address_book where address_book_id = '" . $sendto . "'"); } $address_values = tep_db_fetch_array($address); $total_weight = $cart->show_weight(); $total_count = $cart->count_contents(); $action = 'quote'; include(DIR_WS_MODULES . 'shipping.php'); if ($shipping_quoted == '' && SHIPPING_MODULES != '') { // Null if no quotes selected header('Location: ' . tep_href_link(FILENAME_CHECKOUT_ADDRESS, '' , $connection)); tep_exit(); } ?> $include_file = DIR_WS_LANGUAGES . $language . '/' . FILENAME_CHECKOUT_PAYMENT; include(DIR_WS_INCLUDES . 'include_once.php'); ?> $location = ' : ' . NAVBAR_TITLE_1 . ' : ' . NAVBAR_TITLE_2; ?>