$oos_pagetitle = $oBreadcrumb->trail_title(' » '); $oos_pagetitle .= '»' . OOS_META_TITLE; // assign Smarty variables; $oSmarty->assign( array( 'pagetitle' => htmlspecialchars($oos_pagetitle), 'meta_description' => htmlspecialchars($oos_meta_description), 'meta_keywords' => htmlspecialchars($oos_meta_keywords), 'oos_breadcrumb' => $oBreadcrumb->trail(BREADCRUMB_SEPARATOR), 'oos_heading_title' => $aLang['heading_title'], 'oos_heading_image' => 'delivery.gif', 'sess_method' => $sess_method, 'counts_shipping_modules' => oos_count_shipping_modules(), 'quotes' => $quotes, 'free_shipping' => $free_shipping, 'oos_free_shipping_description' => sprintf($aLang['free_shipping_description'], $oCurrencies->format(MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER)) ) ); // JavaScript $oSmarty->assign('popup_window', 'checkout_shipping.js'); $oSmarty->assign('oosPageHeading', $oSmarty->fetch($aOption['page_heading'])); $oSmarty->assign('contents', $oSmarty->fetch($aOption['template_main'])); // display the template
$aOption['template_main'] = $sTheme . '/modules/checkout_shipping.html'; $aOption['page_heading'] = $sTheme . '/heading/page_heading.html'; $nPageType = OOS_PAGE_TYPE_CHECKOUT; require 'includes/oos_system.php'; if (!isset($option)) { require 'includes/info_message.php'; require 'includes/oos_blocks.php'; require 'includes/oos_counter.php'; } $campaignstable = $oostable['campaigns']; $sql = "SELECT campaigns_id FROM {$campaignstable} WHERE campaigns_languages_id = '" . intval($_SESSION['language_id']) . "'"; $campaigns_result = $dbconn->Execute($sql); if ($campaigns_result->RecordCount()) { $oSmarty->assign('campaigns', '1'); if (isset($_SESSION['campaigns_id']) && is_numeric($_SESSION['campaigns_id'])) { $oSmarty->assign('campaigns_id', $_SESSION['campaigns_id']); } else { $oSmarty->assign('campaigns_id', DEFAULT_CAMPAIGNS_ID); } $campaignstable = $oostable['campaigns']; $campaigns_sql = "SELECT campaigns_id, campaigns_name\n FROM {$campaignstable}\n WHERE campaigns_languages_id = '" . intval($_SESSION['language_id']) . "'\n ORDER BY campaigns_id"; $oSmarty->assign('campaigns_radios', $dbconn->getAssoc($campaigns_sql)); } // assign Smarty variables; $oSmarty->assign(array('oos_breadcrumb' => $oBreadcrumb->trail(BREADCRUMB_SEPARATOR), 'oos_heading_title' => $aLang['heading_title'], 'oos_heading_image' => 'delivery.gif', 'sess_method' => $sess_method, 'counts_shipping_modules' => oos_count_shipping_modules(), 'quotes' => $quotes, 'free_shipping' => $free_shipping, 'oos_free_shipping_description' => sprintf($aLang['free_shipping_description'], $oCurrencies->format(MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER)))); // JavaScript $oSmarty->assign('popup_window', 'checkout_shipping.js'); $oSmarty->assign('oosPageHeading', $oSmarty->fetch($aOption['page_heading'])); $oSmarty->assign('contents', $oSmarty->fetch($aOption['template_main'])); // display the template require 'includes/oos_display.php';