assign('tpl_path', 'templates/'.CURRENT_TEMPLATE.'/'); /* bof gm */ $module_smarty->assign('GM_THUMBNAIL_WIDTH', PRODUCT_IMAGE_THUMBNAIL_WIDTH + 10); /* eof gm */ //fsk18 lock $fsk_lock = ''; if ($_SESSION['customers_status']['customers_fsk18_display'] == '0') $fsk_lock = ' and p.products_fsk18!=1'; $random_products_query = "SELECT * FROM ".TABLE_PRODUCTS." p, ".TABLE_PRODUCTS_DESCRIPTION." pd WHERE p.products_id = pd.products_id ".$group_check." ".$fsk_lock." and p.products_status = '1' and pd.language_id = '".(int) $_SESSION['languages_id']."' order by rand() limit ".MAX_RANDOM_PRODUCTS; $row = 0; $module_content = array (); $random_products_query = xtDBquery($random_products_query); while ($random_products = xtc_db_fetch_array($random_products_query, true)) { $module_content[] = $product->buildDataArray($random_products); } if (sizeof($module_content) >= 1) { $module_smarty->assign('language', $_SESSION['language']); $module_smarty->assign('module_content', $module_content); // set cache ID if (!CacheCheck()) { $module_smarty->caching = 0; $module = $module_smarty->fetch(CURRENT_TEMPLATE.'/module/random_products.html'); } else { $module_smarty->caching = 1; $module_smarty->cache_lifetime = CACHE_LIFETIME; $module_smarty->cache_modified_check = CACHE_CHECK; $cache_id = $new_products_category_id.$_SESSION['language'].$_SESSION['customers_status']['customers_status_name'].$_SESSION['currency']; $module = $module_smarty->fetch(CURRENT_TEMPLATE.'/module/random_products.html', $cache_id); } $default_smarty->assign('MODULE_random_products', $module); } ?>
Shopping Cart:
You do not have any products in your shopping cart yet.
Welcome

Welcome visitor! Would you like to login? Or would you like to create a new account ?

New Products