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
/* 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';
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.
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.
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)
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?
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...