cancel
Showing results for 
Search instead for 
Did you mean: 

second website lang problem

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

second website lang problem

Hi, can you help me with a problem, please?

i have this site, http://www.xxx.net/ and i want a redirect on http://www.xxx.net/ca/ depending on ip, so basically 2 web sites, the problem is the redirect work but on http://www.xxx.net/ca/ the language change doesn't apply, i mean, for french only the header and other translates and not the category titles and the other elements and i don't know why

here the loading page i used on http://www.xxx.net/ca/index.php

Mage::run('base_canada', 'website','');

and here is the redirect code from http://www.xxx.net/index.php

 


if ($var_country_code == "CA") {
header('Location: http://www.xxx.net/ca/');
}else {

/* Store or website code */
$mageRunCode = isset($_SERVER['MAGE_RUN_CODE']) ? $_SERVER['MAGE_RUN_CODE'] : '';

/* Run store or run website */
$mageRunType = isset($_SERVER['MAGE_RUN_TYPE']) ? $_SERVER['MAGE_RUN_TYPE'] : 'store';

Mage::run($mageRunCode, $mageRunType);
}

6 REPLIES 6

Re: second website lang problem

Hi @bogdanmba,

 

Maybe the fastest way it could be to get some of the modules availables on the marketpalce.

There are several modules that should help you with this requirement.

Re: second website lang problem

I dint't find a module that does this, but the only problem that i have now is fhe language update, the rest s working ok.

Re: second website lang problem

Take a look to the search result: https://www.magentocommerce.com/magento-connect/catalogsearch/result/?q=geoip+switch&pl=0

 

There are several modules. Also I've found some free option.

Re: second website lang problem

i can't use this, i think i didn't explain the problem very well, so i have 2 websites

"Main Website  (Code: base)" and "Canada Website (Code: base_canada)" and if i acces the site from canada i redirect the user to xxx.com/ca/ that loads the second website Canada Website (Code: base_canada)"  and here everithing it's ok only when i try to change the  store language from english to french, the content is not in french (only the footer links are updated)

 

Re: second website lang problem

Hi @bogdanmba,

 

Maybe you rmodification to the index.php is part of the problem (I don't know). Can you revert that change and see if the language switcher works properly?

Re: second website lang problem

thank you for the reply.

the one with the redirect works fine.... i am not sure for the one that starts the second web site, Mage::run('base_canada', 'website');

but i can't find where is the problem...