X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Third Party Add-Ons for X-Cart 4 (https://forum.x-cart.com/forumdisplay.php?f=45)
-   -   Free "What's New?" X-Cart module released! (https://forum.x-cart.com/showthread.php?t=47502)

flyclothing 10-20-2009 12:38 PM

Re: Free "What's New?" X-Cart module released!
 
Did anyone get this working on 4.1? It seem to install fine but not work properly. A What's New category was created but the link just bounced back to the homepage.

Gijs 11-03-2009 11:36 PM

Internationalisation
 
Hi Victor,

1) txt_whats_new = We have added %new_products_txt% since your last visit.

2) %new_products_txt% is replaced in /modules/Whats_New/Whats_New.tpl with "$new_products_text"

3)$new_products_text displays in the bubble: xx new products.

Question:
Where can I change new products into a language variable to internationalize this variable?

Thanks for your reply in advance!

Best regards,

Gijs

Victor D 11-05-2009 11:50 PM

Re: Free "What's New?" X-Cart module released!
 
txt_whats_new : We have added %new_products_txt% since your last visit.

%new_products_txt% is actually a number of new products so you need to keep it intact translating the rest of the variable.
For example:

%new_products_txt% productos nuevos.



But 'View all' text is hardcoded in this template as I see. Please create a variable for it on your own.
I will keep this in mind working on this next version.

Victor D 11-05-2009 11:53 PM

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

Originally Posted by flyclothing
Did anyone get this working on 4.1? It seem to install fine but not work properly. A What's New category was created but the link just bounced back to the homepage.


In the most cases this means products.php is customized and you need to patch this file manually.
Read messages carefully installing the module.

flyclothing 11-06-2009 09:23 AM

Re: Free "What's New?" X-Cart module released!
 
Hey Victor,

We manually patched the entire mod and it didnt work. I went over the code several times. Everything seems to be in place, but the link just bounces back to homepage. Does DSEFU affect the mod?

Christofer 11-09-2009 06:32 AM

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?

mrerotic 11-09-2009 06:36 AM

Re: Free "What's New?" X-Cart module released!
 
Issue I have is I cant seem to provide a description to show for this 'Whats New' category. If anyone has any ideas, please let me know.

Thanks :)

ibdmanhb 11-13-2009 01:04 PM

Re: Free "What's New?" X-Cart module released!
 
Hey Victor,
I installed this mod on a 4.1.9 cart and all seemed well, I upgraded to 4.1.12 recently and I just had a returning customer contact me saying IE7 was spitting an error: Internet explorer can not open the internet site:http://www.ocsurfwear.com,operation aborted. The page only shows a little of the bubble and nothing else. I disabled the module and the problem went away. I don't know if this problem existed before and no one took the time to email me or it cropped up after the 4.1.12 upgrade. I have seen other references to this IE error from IE5 and up, IE8 seems to work OK. Some people talk about JS errors and others have to do with tags in the wrong places. Any idea?? Where would I disable just the bubble option and leave the whats new catagory intact in the menus to test if thats whats causing the error?

Thanks

Victor D 11-17-2009 12:26 AM

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

Originally Posted by ibdmanhb
Hey Victor,
I installed this mod on a 4.1.9 cart and all seemed well, I upgraded to 4.1.12 recently and I just had a returning customer contact me saying IE7 was spitting an error: Internet explorer can not open the internet site:http://www.ocsurfwear.com,operation aborted. The page only shows a little of the bubble and nothing else. I disabled the module and the problem went away. I don't know if this problem existed before and no one took the time to email me or it cropped up after the 4.1.12 upgrade. I have seen other references to this IE error from IE5 and up, IE8 seems to work OK. Some people talk about JS errors and others have to do with tags in the wrong places. Any idea?? Where would I disable just the bubble option and leave the whats new catagory intact in the menus to test if thats whats causing the error?
Thanks


Please upgrade to the latest version. This issue is fixed there

ibdmanhb 11-17-2009 12:21 PM

Re: Free "What's New?" X-Cart module released!
 
Thanks for the reply, I like this module and I hate to keep it disabled. Should I upload the latest files from your site and re-run the automatic install?

Thank you again


All times are GMT -8. The time now is 01:54 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.