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 > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-10-2007, 12:56 PM
  hrothbeorht's Avatar 
hrothbeorht hrothbeorht is offline
 

Senior Member
  
Join Date: May 2007
Posts: 156
 

Default language if statement

Hey hey all..

I was wondring if it's possible to do an {if} statement on language.
Like:

If language = EN then show this
else, show that

I'm going to comb through the {if} thread I saw a while back, but if anyone has done this, I'm short on time and it would really help..

-hroth
__________________
x-cart- 4.1.10
www.boutiquefinn.ca
Reply With Quote
  #2  
Old 07-10-2007, 01:05 PM
  chamberinternet's Avatar 
chamberinternet chamberinternet is offline
 

X-Wizard
  
Join Date: Sep 2005
Location: Lancashire, UK
Posts: 1,460
 

Default Re: language if statement

Yeah ..

e.g:
Code:
{if $shop_language eq EN} Do Something {elseif $shop_language eq FR} Something Else {else} Something Else {/if}

Regards

Shafiq :sK
__________________
Developing in 4.7.x now (Dipping into v5 - Slowly!)
Have used 4.1.x, 4.2.x, 4.4.x, 4.5.x, 4.6.x & 4.7.x
Multiple Instances of X-Cart
MySQL 5.6.37
CentOS 7.4


Chamber Internet
- Lancashire, United Kingdom
http://www.chamberelancs.co.uk
Reply With Quote
  #3  
Old 07-10-2007, 01:30 PM
  hrothbeorht's Avatar 
hrothbeorht hrothbeorht is offline
 

Senior Member
  
Join Date: May 2007
Posts: 156
 

Default Re: language if statement

kindly thank you!
__________________
x-cart- 4.1.10
www.boutiquefinn.ca
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 01:06 PM.

   

 
X-Cart forums © 2001-2018