| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
How do you execute code depending on a language? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I am trying to execute code according to the language the user is viewing the store.
Does anyone know the variable name for language and the values for the languages French and English? I basically want the code to look like: {if $language eq "French"} ######line of code here###### {else} ######line fo code here###### {/if} I am just not sure on the first line.
__________________
Adam x-cart-4.0.12gold Unix OS |
|||||||
#2
|
|||||||
|
|||||||
![]() I figured it out. Just in case someone else out there is haveing the same question the variable name for the language of the store is $store_language and the values for the languages English and French are US and FR respectively.
__________________
Adam x-cart-4.0.12gold Unix OS |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|