Auto Currency Switcher is a currency switcher extension which automatically switches store currency based on visitor’s IP address.
This module is compatible with Magento version 1.3 and later (Magento 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9).
Auto Currency Switcher extension tracks visitor’s IP address and automatically changes the store currency to the visitor’s location currency. Visitor can switch to his/her desired currency at any time.
This extension uses MaxMind’s GeoIP technology for IP address lookup.
No extra configuration settings is to be made. Just install the module in your multi-currency Magento shop and the module will work on the fly.
But remember that, you should first setup/enable multiple currency on your shop. Here is how to do so:-
Magento: Setup multiple currency shop
Testing this extension
Here are the steps to test if this module is working or not.
– First of all, as mentioned above, you have to enable multiple currencies in your shop.
– Open app/code/community/Chapagain/AutoCurrency/Helper/Data.php
– Edit the following function as below:-
/**
* Get IP Address
*
* @return string
*/
public function getIpAddress()
{
// added this line for test
return "YOUR.IP.ADDRESS"; // put your ip address
// commented this line for test
//return $_SERVER['REMOTE_ADDR'];
}
– Go to any product listing page.
– You should be able to see product price in the currency of the country’s IP which you have set in the above function.
Please note that sometimes this extension doesn’t perform due to browser cache. If you find this module not working then try clearing your browser cache. Or, try opening your website in another browser.
If you have any further queries then please drop a comment on this blog post or on the
Auto Currency Switcher Extension Page itself.
Thanks.