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

Language if statement

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-22-2009, 10:58 AM
  abeight's Avatar 
abeight abeight is offline
 

X-Adept
  
Join Date: Nov 2003
Location: Cleveland, OH
Posts: 479
 

Default Language if statement

I'm working on a bi-lingual site (English/French) and need an if statement to display images based on which language is selected. I tried this but nothing shows up.

{if $shop_language eq EN}
Do Something
{elseif $shop_language eq FR}
Something Else
{else}
Something Else
{/if}

Version 4.1.11

Has anyone done this?

TIA!
__________________
~ Andrea Beight
Reply With Quote
  #2  
Old 05-22-2009, 12:31 PM
  abeight's Avatar 
abeight abeight is offline
 

X-Adept
  
Join Date: Nov 2003
Location: Cleveland, OH
Posts: 479
 

Default Re: Language if statement

Resolved - needed quotes around "FR" and "EN"
__________________
~ Andrea Beight
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 12:13 PM.

   

 
X-Cart forums © 2001-2020