Example #1
0
//smarty
require 'includes/classes/class_template.php';
$oSmarty = new Template();

//debug
if ($oEvent->installed_plugin('debug')) {
    $oSmarty->force_compile   = true;
    $oSmarty->debugging       = true;
    $oSmarty->clear_all_cache();
    $oSmarty->clear_compiled_tpl();
}



// object register
$oSmarty->register_object("cart", $_SESSION['cart'],array('count_contents', 'get_products'));
$oSmarty->assign_by_ref("oEvent", $oEvent);


// cache_id
$oos_cache_id                   = $sTheme . '|block|' . $sLanguage. '|' . intval($nGroupID);
$oos_system_cache_id            = $sTheme . '|block|' . $sLanguage. '|' . intval($nGroupID);
$oos_categories_cache_id        = $sTheme . '|block|categories|' . $sLanguage . '|' . $categories . '|' . intval($nGroupID);
$oos_modules_cache_id           = $sTheme . '|modules|' . $sLanguage . '|' . $_SESSION['currency']. '|' . intval($nGroupID);
$oos_news_cache_id              = $sTheme . '|modules|news|' . $sLanguage. '|' . intval($nGroupID);
$oos_manufacturers_cache_id     = $sTheme . '|block|manufacturers|' . $sLanguage . '|' . intval($nManufacturersId) . '|' . intval($nGroupID);
$oos_manufacturer_info_cache_id = $sTheme . '|block|manufacturer_info|' . $sLanguage . '|' . intval($nManufacturersId) . '|' . intval($nGroupID);

if (isset($_GET['products_id'])) {
    if (!isset($nProductsId)) $nProductsId = oos_get_product_id($_GET['products_id']);