hgati / auto-currency-switcher
Automatic Currency Switcher Extension for Magento 2
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:magento2-module
This package is auto-updated.
Last update: 2024-10-26 13:29:49 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 Nginx GeoIP2
databases for IP Address lookup.
Warning!! Here is Google's official stance on multilingual websites.
- If you have multiple versions of a page:
- Avoid automatically redirecting users from one language version of a site to a different language version of a site. For example, don't redirect based on what you think the user's language may be. These redirections could prevent users (and search engines) from viewing all the versions of your site.
- Consider adding hyperlinks to other language versions of a page. That way users can click to choose a different language version of the page.
- Therefore, using this extension is highly discouraged as it can have a very negative impact on Google SEO.
- Therefore, I abandoned this automatic extension and chose a method where users manually select the language and currency.
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
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 hgati/auto-currency-switcher:dev-master
- Enable the module and clear static content with the following command:
php bin/magento module:enable Hgati_AutoCurrencySwitcher –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 disabled by default.