Type
magento2-module
Switching websites/stores depending on current country.
magento2-module
MIT
None
None
None
None
None
ToBai Geo Store Switcher is a Magento 2 extension. It improves shopping experience on your Magento 2 Store. The module switches to the corresponding Website or Store View and your customers always get correct language locale, can use the currency which best suites them, get correct shipping rates and taxes. ToBai Geo Store Switcher extension uses MaxMind technology which accurately detects geo location of the customer by IP.
More information about the extension you can find at this page - http://www.to-bai.com/magento-2-extensions/geo-store-switcher.html
Please follow next instructions to successfully install ToBai Geo Store Switcher in your Magento 2 store.
Disable the cache with this command:
bin/magento cache:disable
Add extension to composer require section using this command:
composer require tobai/magento2-geo-store-switcher
Enable module and upgrade with this commands:
bin/magento module:enable --clear-static-content Tobai_GeoStoreSwitcher
bin/magento setup:upgrade
Check under Stores->Configuration->Advanced->Advanced that the module ToBai_GeoStoreSwitcher is present. There also should be present ToBai_GeoIP2 extension which installs automatically. ToBai Geo Store Switcher is depended on ToBai GeoIP2 extension. If ToBai_GeoStoreSwitcher and ToBai_GeoIP2 display in alphabetical order, you successfully installed the reference module!
Flush and enable the cache with this commands:
bin/magento cache:flush
bin/magento cache:enable
Now you should see at Stores > Configuration new ToBai tab. When you click at this tab you will see Geo Store Switcher section.
Before enabling cache you may compile DI. For compiling run command (before and after "var/di" directory must be deleted):
bin/magento setup:di:compile
Added support of store scope for enabling/disabling.
Added support of website scope for all configuration.
Added ability to disable module for specific IPs and/or user agents.