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


PHP shipping::quote_store方法代碼示例

本文整理匯總了PHP中shipping::quote_store方法的典型用法代碼示例。如果您正苦於以下問題:PHP shipping::quote_store方法的具體用法?PHP shipping::quote_store怎麽用?PHP shipping::quote_store使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在shipping的用法示例。


在下文中一共展示了shipping::quote_store方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: while

    $free_shipping = false;
    if ($pass == true && $order->info['total'] >= MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER) {
        $free_shipping = true;
        $content_query = smn_db_query("select text_key, text_content from " . TABLE_WEB_SITE_CONTENT . " where store_id = '" . $store_id . "' " . " and page_name = 'ot_shipping'");
        while ($text_contents = smn_db_fetch_array($content_query)) {
            define($text_contents['text_key'], $text_contents['text_content']);
        }
    }
} else {
    $free_shipping = false;
}
// process the selected shipping method
if (isset($_POST['action']) && $_POST['action'] == 'process') {
    /*Added the code to get the shpping charges of each module for each store,by Cimi*/
    if (ALLOW_STORE_PAYMENT == 'false') {
        $quotes_store = $shipping_modules->quote_store();
    }
    if (!smn_session_is_registered('comments')) {
        smn_session_register('comments');
    }
    if (smn_not_null($_POST['comments'])) {
        $comments = smn_db_prepare_input($_POST['comments']);
    }
    if (!smn_session_is_registered('shipping')) {
        smn_session_register('shipping');
    }
    /*Register the session shipping_store,By Cimi*/
    if (!smn_session_is_registered('shipping_store')) {
        smn_session_register('shipping_store');
    }
    if (smn_count_shipping_modules() > 0 || $free_shipping == true) {
開發者ID:stanislauslive,項目名稱:StanMarket,代碼行數:31,代碼來源:checkout_shipping.php


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