chapagain / magento2-autocurrency
Automatic Currency Switcher Extension for Magento 2
Installs: 25
Dependents: 0
Suggesters: 0
Security: 0
Stars: 13
Watchers: 5
Forks: 14
Open Issues: 0
Type:magento2-module
Requires
- php: ~7.0.13||~7.1.0||~7.2.0||~7.3.0
- magento/framework: ~100.1 || ~101.0 || ~102.0
- magento/module-config: *
- magento/module-store: *
This package is auto-updated.
Last update: 2024-05-12 06:13:43 UTC
README
Automatically switches shop's currency to visitor's local currency - "Magento 2" Extension
Auto Currency 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 Webnet77's Ip2Country
IP Address databases for IP Address lookup.
Prerequisite
Enable Multiple Currency on your Magento 2 Store
- Login to Magento 2 Admin
- Go to
STORES -> Configuration -> GENERAL -> Currency Setup -> Currency Options
- In
Allowed Currencies
box, select the currencies that you want to enable on your site/store - Now, go to
STORES -> Currency Rates
- Import currency rates by clicking the Import button, Or add the rates manually
- Then, click the
Save Currency Rates
button
Installation
Manual Installation
- The module's files should be placed in folder:
app/code/Chapagain/AutoCurrency
- Open terminal/command-prompt
- Go to your Magento website’s root directory with the following command:
cd /path/to/your/magento/root/directory
- Enable the module and clear static content with the following command:
php bin/magento module:enable Chapagain_AutoCurrency –clear-static-content
- Do setup upgrade with the following command:
php bin/magento setup:upgrade
Composer Installation
- Go to your Magento website’s root directory with the following command:
cd /path/to/your/magento/root/directory
- Run the following command:
composer require chapagain/magento2-autocurrency
- Enable the module and clear static content with the following command:
php bin/magento module:enable Chapagain_AutoCurrency –clear-static-content
- Do setup upgrade with the following command:
php bin/magento setup:upgrade
Configuration Settings
- Login to your Magento site's admin
- Go to
STORES → Settings → Configuration
page - On left sidebar, click on
CHAPAGAIN EXTENSIONS → Auto Currency
menu - From there, you can Enable/Disable the module. The module is enabled by default.
Updating GeoIP Databases
The GeoIP database should be updated from time to time in order to make this extension work accurately.
- Download IPV4 CSV file
- Extract the file. This will extract
IPtoCountry.csv
file. - Use Ip2Country lookup classes for PHP to create binary-optimized version of the csv file.
- Upload the binary file (
.dat
file) to your[Module Folder]/geoip/ip2country/
folder.