| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Language Term and Condition | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hello
Is there a way to have 2 (French & English) Term - Conditions page ? And how to do that. Sorry for all my questions but im new to this cart. Stefan |
|||||||
#2
|
|||||||||
|
|||||||||
![]() You could create an entry in admin/languages that holds the content of the conditions page. You could do the same thing but for the french version.
on the conditions.tpl just add the variable to bring up the code form the languages table
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. ![]() ![]() |
|||||||||
#3
|
|||||||
|
|||||||
![]() Hello,
Great but how do i add that in a .pl file. i.e language calls ? English - French Thanks Stefan |
|||||||
#4
|
|||||||||
|
|||||||||
![]() If you were to add a lable type called title for instance then you would include it on your tpl file as follows
{$lng.lbl_title} follow the same method for adding a text type
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. ![]() ![]() |
|||||||||
#5
|
|||||||
|
|||||||
![]() Is there a way to call a different file language specific ? Like for english load page A and for french load B ?
Same thing with images... Stefan |
|||||||
#6
|
|||||||||
|
|||||||||
![]() Thats the whole point of using the language variables.
If the site is running in English it shows the english variable and if its in French it shows the frech version etc
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. ![]() ![]() |
|||||||||
#7
|
|||||||
|
|||||||
![]() Thanks but how do we call a different page (.pl) equivant to a language ?
Stefan |
|||||||
#8
|
|||||||||
|
|||||||||
![]() In your admin / languages ... add a record for each language you need.
add the variable to your tpl file .... The store will display Quote:
SO you would need to do something like this.... Quote:
Xcart automaticaly display the correct language depending on which language is chosen. I suggest you experiment with the languages section in your admin area. take a look at www.smarty.net, check the FAQ here and in the members area, search for "languages" here in the forum and it will all become clear
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. ![]() ![]() |
|||||||||
#9
|
|||||||
|
|||||||
![]() Hello,
I inderstand exactly how to call a different language text or label but how do i call a DIFFERENT .PL file according to the language. Same thing for calling image in different language. i.e. i have termsFR.pl and termsUS.pl. Stefan |
|||||||
#10
|
|||||||
|
|||||||
![]() ... would be to modify the template of your main page by adding :
{include "page".$Current_lng.".tpl") the idea is to use the current language as a variable in the name of the file you wan to call : this way, it will not call the same .tpl if the lng is FR or ENG... Romain. |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|