本文整理汇总了PHP中shipping::get_shiptotal方法的典型用法代码示例。如果您正苦于以下问题:PHP shipping::get_shiptotal方法的具体用法?PHP shipping::get_shiptotal怎么用?PHP shipping::get_shiptotal使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类shipping
的用法示例。
在下文中一共展示了shipping::get_shiptotal方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: list
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);
示例2: buildInfobox
$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';