$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) {