View Single Post
  #86  
Old 11-09-2009, 06:32 AM
 
Christofer Christofer is offline
 

eXpert
  
Join Date: Apr 2009
Location: Thessaloniki, Greece
Posts: 202
 

Default Re: Free "What's New?" X-Cart module released!

i want to edit the modules/What_New/config.php the :
if (isset($_COOKIE['online'])) {
$aw_new_products = func_query_first_cell("select count(*) from $sql_tbl[products] where add_date > ".$_COOKIE['online']." and add_date < ".time());
$smarty->assign("new_products_count",$aw_new_products);
$smarty->assign("new_products_date",$_COOKIE['online']);
$smarty->assign("new_products_text",($aw_new_products == 1)?$aw_new_products." new product":$aw_new_products." new products");
setcookie("last_visit", time(), time()+94608000);
} else {
setcookie("online", $_COOKIE['last_visit'], 0);
setcookie("last_visit", time(), time()+94608000);
$aw_new_products = func_query_first_cell("select count(*) from $sql_tbl[products] where add_date > ".$_COOKIE['last_visit']." and add_date < ".time());
$smarty->assign("new_products_text",($new_products_count == 1)?"$aw_new_products new product":"$aw_new_products new products");
$smarty->assign("new_products_count",$aw_new_products);
$smarty->assign("new_products_date",$_COOKIE['last_visit']);



I want to edit the BOLD text to be language variable, coz i can't translate the txt_whats_new and leave the bold text to be on language. It will look weird. Also the http://www.gsmcorner.gr/home.php?WhatsNew=Y still doesn't work, in the past you ask for login details but i was on holiday. Can you have a look?
__________________
X-Cart Gold : 4.2.1 (on linux parallels plesk / mysql)
Php v5.2.9 (Zend: 2.2.0) - MySql v5.0.79 - LiteSpeed server
Modules : X-Offer & X-Aom & One page checkout
Product tabs & Product downloads & many more
Reply With Quote