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

Language Term and Condition

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-17-2003, 02:02 PM
 
tpfair tpfair is offline
 

Advanced Member
  
Join Date: May 2003
Posts: 81
 

Default Language Term and Condition

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
Reply With Quote
  #2  
Old 05-18-2003, 01:20 PM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

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.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 05-19-2003, 01:32 PM
 
tpfair tpfair is offline
 

Advanced Member
  
Join Date: May 2003
Posts: 81
 

Default Condition

Hello,


Great but how do i add that in a .pl file. i.e language calls ? English - French



Thanks


Stefan
Reply With Quote
  #4  
Old 05-19-2003, 03:12 PM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

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.

EWD Hosting
Hands On Hosting
Reply With Quote
  #5  
Old 05-19-2003, 05:03 PM
 
tpfair tpfair is offline
 

Advanced Member
  
Join Date: May 2003
Posts: 81
 

Default Great but...

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
Reply With Quote
  #6  
Old 05-20-2003, 04:22 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

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.

EWD Hosting
Hands On Hosting
Reply With Quote
  #7  
Old 05-20-2003, 09:47 AM
 
tpfair tpfair is offline
 

Advanced Member
  
Join Date: May 2003
Posts: 81
 

Default Terms

Thanks but how do we call a different page (.pl) equivant to a language ?


Stefan
Reply With Quote
  #8  
Old 05-20-2003, 10:01 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

In your admin / languages ... add a record for each language you need.

add the variable to your tpl file ....

The store will display

Quote:
.................................................. ..................
Language = ENGLISH

Variable = lbl_about_our_site
Description = About our site
Value = About our site

.................................................. ...................
Language = GERMAN

Variable = lbl_about_our_site
Description = About our site
Value = ц°ber unserer Stelle


SO you would need to do something like this....

Quote:
.................................................. ..................
Language = ENGLISH

Variable = lbl_terms
Description = your terms
Value = ADD YOUR ENGLISH TERMS HERE

.................................................. ...................
Language = GERMAN

Variable = lbl_terms
Description = your terms
Value = ADD YOUR GERMAN TERMS HERE

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.

EWD Hosting
Hands On Hosting
Reply With Quote
  #9  
Old 05-20-2003, 03:48 PM
 
tpfair tpfair is offline
 

Advanced Member
  
Join Date: May 2003
Posts: 81
 

Default Terms

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
Reply With Quote
  #10  
Old 06-18-2003, 10:33 AM
 
Romain Romain is offline
 

Newbie
  
Join Date: Jun 2003
Posts: 2
 

Default one idea

... 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.
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 06:12 AM.

   

 
X-Cart forums © 2001-2020