Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

showing different templates for different languages

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-15-2005, 06:03 PM
 
fmb43 fmb43 is offline
 

Newbie
  
Join Date: Sep 2005
Posts: 1
 

Default showing different templates for different languages

i need a code to include in a .tpl file of the shop to do this:
if for example shop language is english show en.tpl
or if shop language is spanish show es.tpl
thanks
best regards
__________________
axel rose
Reply With Quote
  #2  
Old 10-17-2005, 06:22 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Moving to template editing. Also, please put your X-Cart version in your signature per the forum rules. Thanks!
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 10-17-2005, 10:51 AM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

Code:
{if $smarty.get.sl eq "EN"} I'm english {/if}

You can also use this to find what tpl variables are available at the time of
processing:

Code:
{php}func_print_r($this->_tpl_vars);{/php}
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 08:17 PM.

   

 
X-Cart forums © 2001-2020