Post by Milki » Wed Aug 23, 2017 5:30 pm

So this is what I need.

What I want to do is to create four stores - one with separate domain "example.pl" and three with sub-domains such us "es.example.com", "ru.example.com" and "en.example.com". This is easy. This is not a problem.

But two things more are not easy:

1. I do not want to use subdomains in url. Canonical url should be "example.com/es/product" (instead of es.example.com/product) and then I apply special seo module which will create nice urls for products, categories and so on in different languages. Or we can have es hidden in example.com and then the seo module will create also language prefixes so we will have es/prodcut-name-in-spanish and when language is different the seo module will give en/product-name-in-english and so on. But the problem is that I do not know how to successfully hide "en." or "es." or transform it to example.com/es, /en/...

2. I need to change store any time language is changed. So any user has "example.com/es/product-name-in-spanish" and when he or she decides to change language to English not only the language is changed but also at the very time when language is changed the store is also changed so that he or she gets in url: "example.com/en/product-name-in-english"

It must have different stores because I want to have menus and many things to be customized. So theoretically there are all languages to all stores possible but because when you change your language you always change the store you will never have in practice "example.com/es/product-name-in-english".

It seems to me that I just need some .httacces, javascript or php code to be written for me. Then I could apply it to the store by myself by instructions where to put this code (I do not have yet a final domain for the store, I am making preparations to create one).

Newbie

Posts

Joined
Sat Oct 01, 2016 2:12 am

Post by yodapt » Wed Aug 23, 2017 6:35 pm

Check PM

Opencart Developer - My Extension Showcase
Contact me at aeon.yoda@gmail.com


User avatar
Active Member

Posts

Joined
Fri Jun 17, 2011 6:39 pm

Who is online

Users browsing this forum: No registered users and 2 guests