Search code examples
magento-1.5switchers

How to switch store in magento automatically basing on the visitors IP address


I am using magento 1.5, I already created different stores in my store.

I created stores based on language.

  • English
  • Chinese
  • German
  • French
  • Spanish

i want to trap the the Ip address of the visitor. If the ip is from france, the store will automatically redirect to the french URL that i have created. If other countries it will redirected to the default store view.

thank you in advance.


Solution

  • I show this action Altought I havent tried it by myself. Here is the link: How to switch store views automatically

    Basically, what it says is to add this code in the index.php, which is in the root folder of your magento system.

    Good Luck!