本文整理汇总了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) {