當前位置: 首頁>>代碼示例>>PHP>>正文


PHP shipping::get_shiptotal方法代碼示例

本文整理匯總了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);
開發者ID:digideskio,項目名稱:oscmax2,代碼行數:31,代碼來源:checkout_shipping.php

示例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';
開發者ID:digideskio,項目名稱:oscmax2,代碼行數:31,代碼來源:checkout.php


注:本文中的shipping::get_shiptotal方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。