Page 1 of 1

Multiple languages on different URL?

Posted: Sat Oct 16, 2010 7:56 am
by hawkey
Hi folks

When I want to add multiple languages, is it possible to add them different URL without creating special stores?

For example I have petshop.com in english and I want german version not only by selecting language. I want it directly on petshop.de in german.

I know I can create other store, point petshop.de to the same place and make german default... But I will have to add all of products to both stores and maintain it twice.

It would be nice to have multiple languages in one store and change URL by switching language...

Thanks

Re: Multiple languages on different URL?

Posted: Sat Oct 16, 2010 1:19 pm
by jones
For example I have petshop.com in english and I want german version not only by selecting language. I want it directly on petshop.de in german
petshop.com and petshop.de are two different domain names. will be better if you install two OC on each other. then for each domain name you need activated one language according on the domain extension. then for each language just create link that point to domain name.

of course doing this you need to disable the original drop down languange and change this with language link in your .tpl file. on e.g. header.tpl, footer.tpl or category.tpl

as far as i know languages switcher on OC handled with ajax/jquery so you can't find the different urls for different languages without change the core files related to it.

Re: Multiple languages on different URL?

Posted: Sat Oct 16, 2010 1:57 pm
by Qphoria
Seems very pointless. For one, Opencart handles multiple languages in one store very well. And then you have 2 separate sites with separate google rankings and any paid inclusion gets split when you could focus it all on one store. Best idea is stick with one store and use 2 languages.

Re: Multiple languages on different URL?

Posted: Sat Oct 16, 2010 2:26 pm
by jones
Qphoria wrote:Seems very pointless. ....... Best idea is stick with one store and use 2 languages.
i agree very pointless but hawkey asked using 2 lang with 2 diff domains(urls) or more but one OC core.

Re: Multiple languages on different URL?

Posted: Sat Oct 16, 2010 4:08 pm
by hawkey
Yes. I want two languages on two domains with one core. I undrestand you but it is for Czech and Slovak republic and Slovaks will not go to czech domain because they are too proud so I can not make slovavk language on czech domain :)

Re: Multiple languages on different URL?

Posted: Sat Oct 16, 2010 10:27 pm
by jones
unfortunately I don't have any idea about it... as i said:
as far as i know languages switcher on OC handled with ajax/jquery so you can't find the different urls for different languages without change the core files related to it.

Re: Multiple languages on different URL?

Posted: Sun Oct 17, 2010 9:56 pm
by jty
hawkey wrote:I know I can create other store, point petshop.de to the same place and make german default... But I will have to add all of products to both stores and maintain it twice.
I'm not understanding why it is difficult to add products to more than one store
In 1.4.9, all you have to do it click the Select All checkbox to assign the products to all stores.
Initially, it would be a pain as you have to go through each product and click the Select All but after that, it would be a no-thing.
You could even use SQL to assign all products to the new store so you don't have to do it one product at a time when you first implement. After that just click Select All for new products
What am I missing

Re: Multiple languages on different URL?

Posted: Sun Jul 31, 2011 6:17 pm
by 24leaves.com
Google doesn't inde3x other language but the main one. The ideea of having another store on another URL is weird but for now this is the only solution for SEO.

Re: Multiple languages on different URL?

Posted: Sun Aug 14, 2011 8:08 pm
by lyman
Do you remember when you add language, there is a code for each languge. like English is "en"
Chinese is "cn",

So when you want to go to the english site the full URL should be:

http://yourdomain.com/opencat/index.php?language=en

and Chinese site is


http://yourdomain.com/opencat/index.php?language=cn

Re: Multiple languages on different URL?

Posted: Tue Oct 25, 2011 2:09 am
by Punisher28
I need this too for my multi-language webshop.
Is there a solution for this?

Re: Multiple languages on different URL?

Posted: Tue Nov 13, 2012 3:40 pm
by mediaindustries
Anyone found a solution yet?

What I would like to fix:

Domain1.com - main opencart installation with multiple languages installed - default language is english
Domain1.nl - points to domain1.com and shows the default english language but needs to show directly the dutch language which is installed.

I already know how to set up the multistore by using domain pointers but I can't fix this language issue.

What I did found was this vqmod: http://www.opencart.com/index.php?route ... on_id=6424

With this vqmod every language has its own URL. For example domain.com/nl. It's a solution but for SEO I would like to have a main URL for each language.

Thanks in advance.

Re: Multiple languages on different URL?

Posted: Tue Nov 13, 2012 8:19 pm
by bigbrother72
hello
i setup http://mydomain.com as default store and english as default language (russian second language)

now I have added http://ru.mydomain.com and with russian as default language.

but no effect -when i enter on http://ru.mydomain.com - there is an English by default

Re: Multiple languages on different URL?

Posted: Wed Nov 14, 2012 8:43 pm
by bigbrother72
soory - all work ok - just clear cookies

Re: Multiple languages on different URL?

Posted: Sun Jun 16, 2013 5:46 pm
by Viach
lyman wrote:Do you remember when you add language, there is a code for each languge. like English is "en"
Chinese is "cn",

So when you want to go to the english site the full URL should be:

http://yourdomain.com/opencat/index.php?language=en

and Chinese site is


http://yourdomain.com/opencat/index.php?language=cn
It is not working now (v1.5.4 ).
How I can force change language (and currency) from URL?
Is is possible?

Re: Multiple languages on different URL?

Posted: Mon Apr 04, 2016 1:00 am
by slebote
Hello,

I tortured myself into this issue because I had the same demand from a customer : handle languages on each stores with only one Opencart core.

I have to admin it was not an easy task because of several core functionnalities like language detection but it totally worth it for a very simple administration : only 1 product for every stores.

If you are interested in my module you can find it here : http://www.opencart.com/index.php?route ... n_id=26264

For now it supports Opencart version 1.5.4 to the last one (2.2.0.0).

A quick screenshot :

Image

Regards,
slebote