Forums / General Questions / When changing language, go to same shop, but different domain?

When changing language, go to same shop, but different domain?

Locked

Views: 1,818

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
10 May 2008, 11:36 PM
#1
vega avatar

vega

New Zenner

Join Date:
Apr 2008
Posts:
10
Plugin Contributions:
0

When changing language, go to same shop, but different domain?

So I have Zen Cart installed, with 5 languages. And I have 4 different domains for every other language than english, but everything is already installed on the main domain, the remaining 4 are add-on domains, which are on the same server as the main domain.

My question is if a user selects a different language, could I make it go from https://www.zencartdomain1.com to https://www.zencartdomain2.com, but still being the same zencart, just a different language?

Thanks.

10 May 2008, 11:51 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: When changing language, go to same shop, but different domain?

With some custom coding you could but why not use the language functionality built into Zen Cart and have it just change the language?

Check and select the language flag and see the language change HERE

Zen-Venom Get Bitten

10 May 2008, 11:57 PM
#3
vega avatar

vega

New Zenner

Join Date:
Apr 2008
Posts:
10
Plugin Contributions:
0

Re: When changing language, go to same shop, but different domain?

Thanks for your fast reply.

I know how to add the languages, with the language chooser, but I'd like the different languages also to be on different domains, has to do with search keys and such for google and other search engines. When you add languages to your zen cart shop (as I also did), it won't get search results on google or any other search engine for the languages that are not your default language. I'm thinking that with the different languages being on a different domain, that you will get search results for these languages too, instead of just your default language.

11 May 2008, 12:14 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: When changing language, go to same shop, but different domain?

Tou will have to get rid of the smart code in tpl_languages.php and replace it with "Hard Code" linking each flag to your other domains...

Insure you use the override - and replicate this to each site

Zen-Venom Get Bitten

11 May 2008, 10:25 AM
#5
vega avatar

vega

New Zenner

Join Date:
Apr 2008
Posts:
10
Plugin Contributions:
0

Re: When changing language, go to same shop, but different domain?

Alright, thanks for that. I'm no good at PHP, so I guess that I'll wait until I find someone that can help me.

But thanks for the info Kobra :)