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

Using X-Cart with Multilanguage Support and Sections

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-16-2004, 12:56 PM
 
salsabeel salsabeel is offline
 

Senior Member
  
Join Date: Jan 2004
Posts: 132
 

Default Using X-Cart with Multilanguage Support and Sections

I want to set up my website to have a feature where two languages are available. At the front page (/index.html) there would be two choices: English (/english/customer/) and Arabic (/arabic/customer/). The customer would be able to go to the English site and see products available in English only and they would be able to go to the Arabic siteand see products available in Arabic only. They would be able to add one item from the English site to their cart and switch over to the Arabic site if they chose and add Arabic items to the SAME cart. When they check out they would be able to see both items, though from different versions of the site, in the same cart. The database on the admin side would be the same. How is this possible?

I am sorry if this is the wrong section of the forum to post this question on.
Reply With Quote
  #2  
Old 01-16-2004, 01:25 PM
  leon's Avatar 
leon leon is offline
 

X-Wizard
  
Join Date: Mar 2003
Location: Costa Rica
Posts: 1,213
 

Default

This needs a strong hack, the most logical thing you could do, if you know what you're doing is adding a field in the products database, called for_language for example.

Inside that field you would add the 2 charset coding for languages, whereas EN for english and AB for arabic. Thats the basis.

Now the hard part is to hack several scripts and templates to have this understood by the system in a way that the language pointed out by you for the product would display only for a choosen language by the customer.

If it is done this way, you wont have to have different stores all over the place, the down part is that it needs to be hacked tough, and when you want to upgrade it will be a headache.

Try suggesting in the Wish List.
__________________
It doesn\'t matter what is done... it is how it is done.
=============================
XCart Version: 3.5.3 -> Dmcigars.com
XCart Version: 4.1.3....
Reply With Quote
  #3  
Old 01-17-2004, 02:18 AM
  shan's Avatar 
shan shan is offline
 

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

Default

why not have 1 store with all products in sections but give international descriptions to all products.

you could still send them in as english or arabic from links on a splash screen
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #4  
Old 01-17-2004, 02:47 AM
 
salsabeel salsabeel is offline
 

Senior Member
  
Join Date: Jan 2004
Posts: 132
 

Default

Shan - But how would I have different page designs for each arabic and english and also be able to hide the arabic categories for the english page and the english categories for the arabic page?
Reply With Quote
  #5  
Old 01-17-2004, 03:59 AM
  shan's Avatar 
shan shan is offline
 

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

Default

im sure you could use {if} statements around the call for categories.tpl and maybe use skinswap from http://cartlab.net for the design side of it
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
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 05:29 PM.

   

 
X-Cart forums © 2001-2020