Total Posts: 49
I’m looking to switch language and currency when I have multiple websitecodes in Magento.
I wonder if there’s a way to include the store-view-name, and preferrably set the currency, when doing a website-code switch between multiple URLs in index.php like:
The wiki on http://www.magentocommerce.com/wiki/how-to/how_to_automatically_redirect_to_a_store_view_based_on_the_browser_language uses the web-browser settings rather than the IP-address lookup, but the main problem is that it’s for a one-website shop only, and not for when you have multiple URLs, too. (Unless I’ve missed something).
Unfortunately, the server doesn’t allow doing a htaccess redirect based on http://www.maxmind.com/app/mod_geoip which I think would have solved the issue there, so I would need to, like the wiki-post, do something with index.php (either by using the wiki-post or http://www.maxmind.com/app/php) preferrably, just getting the language and currency with the multiple websitecodes to go along with it…