View Single Post
  #26  
Old 01-23-2008, 10:14 PM
 
MoonDog MoonDog is offline
 

Advanced Member
  
Join Date: Aug 2007
Posts: 93
 

Default Re: Recently Viewed Mod

Warwick & sales@webosusa.com

Quote:
And is it possible to get the "You have no recently viewed items." multi language as well, I tried to put {$lng.lbl_my_text} in the javascript but I'm sure that's not working.
Try this:

Place the following code in your skin1/customer/home.tpl file between the <head> and </head> tags:
Code:
<script type="text/javascript"> var myText="{$lng.lbl_my_text}"; </script>
Of course instead of {$lng.lbl_my_text}, you need to create your own language variable in the admin side.


Then open skin1/customer/main/recently_viewed.tpl and edit the following line:

From this...
Code:
else {document.write("You have no recently viewed items.")
To this:
Code:
else {document.write(myText)

- MoonDog -
__________________
X-CART Gold v4.1.8
Reply With Quote