Magento 2 Currency Auto Switcher Manual¶
Introduction¶
Currency Auto Switcher adds the global flexibility to your Magento 2 store. The extension allows you to automatically switch currency based on user location, convert prices to customers’ local currencies and more. GeoIP automatically detects customers country and city in real time and the extension changes the prices accordinally.
Requirements and Installation¶
Currency Auto Switcher supports Open source (Community), Commerce (Enterprise) editions and Commerce cloud. The current version of the Magento installed on your website can be found in the lower right corner of any backend page.
Currency Auto Switcher has 3 separate ways of installation:
1) Copy the code (ready-to-paste package);
2) Use MageWorx Repository;
3) Use local Composer.
Currency Options in Magento 2¶

Log into the Magento Admin panel and go to STORES ⟶ Configuration ⟶ GENERAL ⟶ Currency Setup.
Base Currency specifies the currency to be used for all online transactions in the store.
Default Display Currency sets the currency to display by default in the store.
Difference between Default Display Currency and Base Currency
Default Display Currency doesn’t affect the Base Currency. All the transactions will be processed in the Base Currency.
Allowed Currencies setting sets the currencies, which will be available in the certain store view. The currency switcher will switch these currencies.
Extension Configuration¶
Log into the Magento Admin panel and go to STORES ⟶ Configuration ⟶ MAGEWORX ⟶ GeoIP Extensions. The extension's configuration consists of 2 tabs.
GeoIP Database¶
The GeoIP extension uses free MaxMind GeoIP database to determine locations of your visitors and switch the currency.
The Database Type setting offers two options: GeoIP Country (default) and GeoIP City. The Database Type - City allows displaying a customer's region and city (detected by IP) in the order view.

Due to new MaxMind policy, you should register an account at MaxMinde site and generate a new license key for GeoLite2 database and enter it in the "MaxMind License Key" field.
Note
You should use the following option, when generating the licence key: "Generate a license key and config file for use with geoipupdate versions older than 3.1.1. This key will be stored in an unhashed format."
Update Current Database – click the Update Database button to download the latest GeoIP database. Keep the Create backup checkbox selected to save a backup copy of the current database first. The date of the last update is shown under the button. Note that MaxMind limits the number of database downloads per day.
Note
You should save the configuration after adding a license key first. If you click the Update Database button before saving the configuration, it will update the database of the previous type with the previous license key.
Currency Switcher¶
User Agent List – the list of user agents the currency won’t be switched for. This includes search and social networks bots. Enter one user agent per line; * means anything (e.g. Googlebot*). By default, the list contains googlebot*, yahoo*, msnbot* and facebook*.
Exception URLs provides the list of the website URLs to disable the Currency Switcher for. These are URLs relative to your store URL, used mainly for payment gateways. Enter one URL per line; * means anything (e.g. /paypal/*). This setting is available on the Default Config scope only.
Currency Rates¶
Log into the Magento Admin panel and go to STORES ⟶ Currency ⟶ Currency Rates.
The currency rates values can be set manually in relation to the base currency or automatically.

The store owner can input the desired rates in the appropriate boxes or select the desired rates provider in the Import Service dropdown and click the Import button. After that, click the Save Currency Rates button.

Currency Symbols¶
Log into the Magento Admin panel and go to STORES ⟶ Currency ⟶ Currency Symbols.

From here, the store owner can change the desired currency symbol. This configuration page allows the store owner to use the default currency symbols or change them to the custom ones.
Currency Relations¶
Log into the Magento Admin panel and go to STORES ⟶ Currency ⟶ Currency Relations.

This section manages the Country-Currency relations. The grid lists the allowed currencies of your stores with the countries each currency is applied for.
Click Refresh Relations to update the list after you change the Allowed Currencies: new currencies are added with their default countries, and currencies that are no longer allowed are removed. If the list is empty, click this button first.
To set a list of countries for a currency, click Change in the Countries column and select the countries. To restore the default countries of a currency, select the Reset checkbox. After configuration, hit the Save Currency Relations button.
Currency Auto Switcher switches only the displayed currency
All the transactions will still be processed in the Base Currency.
Got Questions?¶
Need help with the extensions? Feel free submit a ticket from https://www.mageworx.com/support/
Mageworx offers outstanding services developing custom-tailored solutions for Magento platform to attain your eCommerce objectives. Our professional impassioned team provides profound and custom oriented development of your project in a short timeframe.
