![]() |
show image by language
how can i change an image on frontpage or in menue based on different languages?
|
you can use if statements around the code for the image. for example:
{if $store_language eq "US"} [img]image1.gif[/img] {/if} {if $store_language eq "JP"} [img]image2.gif[/img] {/if} |
thanx
|
Great tweek
I have been looking for this tweek for the "save_money.gif" for some time. I now have got the product page completely multilingual (SP,FR,US). Thanks. :wink:
|
just_me and simitpatel,
In what file do you put that code? And before and after what text exactly? If you copy and paste how the code looks on the file it would be great. Thanks! |
making the neat save _money.gif be language compatible
Sure, I'd be happy to help. I put the code in here: /customer/main/product.tpl
Find Code:
{if $active_modules.Feature_Comparison ne ""} Just below it you'll see the code we want to make language friendly: Code:
<TD width="55" height="56" class="SaveMoneyLabel" background="{$ImagesDir}/save_money.gif" align="center" valign="middle"> We made duplicate save_money.gifs in the languages needed and uploaded them to the xcart image file. It's the same file where the original save_money.gif is also located. Then we replaced the standard code with this new code repeating it for our three languages: Code:
{if $store_language eq "US"} |
Just_me,
You're awsome! Thanks! |
All times are GMT -8. The time now is 08:54 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.