if (tep_count_shipping_modules() > 0 || $free_shipping == true) { if (isset($_POST['shipping']) && strpos($_POST['shipping'], '_')) { $shipping = $_POST['shipping']; list($module, $method) = explode('_', $shipping); if (is_object(${$module}) || $shipping == 'free_free') { if ($shipping == 'free_free') { $quote[0]['methods'][0]['title'] = FREE_SHIPPING_TITLE; $quote[0]['methods'][0]['cost'] = '0'; } else { $quote = $shipping_modules->quote($method, $module); } if (isset($quote['error'])) { tep_session_unregister('shipping'); } else { if (isset($quote[0]['methods'][0]['title']) && isset($quote[0]['methods'][0]['cost'])) { $shipping = array('id' => $shipping, 'title' => $free_shipping == true ? $quote[0]['methods'][0]['title'] : $quote[0]['module'] . ' (' . $quote[0]['methods'][0]['title'] . ')', 'cost' => $quote[0]['methods'][0]['cost'], 'invcost' => $shipping_modules->get_shiptotal()); // end indvship 4.5 //---PayPal WPP Modification START ---// tep_paypal_wpp_checkout_shipping_redirect($show_payment_page, $ec_enabled); //tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL')); //---PayPal WPP Modification END ---// } } } else { tep_session_unregister('shipping'); } } } else { $shipping = false; //---PayPal WPP Modification START ---// tep_paypal_wpp_checkout_shipping_redirect($show_payment_page, $ec_enabled);
$breadcrumb->add(NAVBAR_TITLE_1, tep_href_link(FILENAME_CHECKOUT, '', $request_type)); function buildInfobox($header, $contents) { global $action; $info_box_contents = array(); if (isset($action) && tep_not_null($action)) { $info_box_contents[] = array('text' => utf8_encode($header)); } else { $info_box_contents[] = array('text' => $header); } new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); if (isset($action) && tep_not_null($action)) { $info_box_contents[] = array('text' => utf8_encode($contents)); } else { $info_box_contents[] = array('text' => $contents); } new infoBox($info_box_contents); } function fixSeoLink($url) { return str_replace('&', '&', $url); } if ($total_weight == 0 && ONEPAGE_CHECKOUT_HIDE_SHIPPING == 'true' && !$shipping_modules->get_shiptotal()) { $onepage['shippingEnabled'] = false; } $content = CONTENT_ONE_PAGE_CHECKOUT; $javascript = $content . '.js.php'; include bts_select('main'); // BTSv1.5 require DIR_WS_INCLUDES . 'application_bottom.php';