View Single Post
  #6  
Old 07-05-2006, 11:43 AM
  just_me's Avatar 
just_me just_me is offline
 

Advanced Member
  
Join Date: Oct 2005
Location: Spain
Posts: 69
 

Default 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 ""} {include file="modules/Feature_Comparison/product_buttons.tpl"} {/if} </TD> </TR></TABLE> </TD> <TD align="right" valign="top" width="60"> {if $product.taxed_price gt 0 and $product.list_price gt 0 and $product.taxed_price lt $product.list_price}<TABLE border="0" width="60"><TR>

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"} <TD width="55" height="56" class="SaveMoneyLabel" background="{$ImagesDir}/save_money.gif" align="center" valign="middle">{/if} {if $store_language eq "AR"} <TD width="55" height="56" class="SaveMoneyLabel" background="{$ImagesDir}/save_money_es.gif" align="center" valign="middle">{/if} {if $store_language eq "FR"} <TD width="55" height="56" class="SaveMoneyLabel" background="{$ImagesDir}/save_money_fr.gif" align="center" valign="middle">{/if}
__________________
Cordially,
Just me
X-Cart Gold
Version 4.2.3
Multilingual shop: Spanish, French and US English
Reply With Quote