📊 State of Magento 2025

The Home for Magento 2 Excellence

Quality-tested Magento 2 modules. Explore. Evaluate. Elevate. #magento2

613 Modules
401 Ready
211 Need Help
🏆 Leaderboard
Potentially Abandoned v2.0.0

Magento2 Geo Store Switcher

tobai/magento2-geo-store-switcher

Automatically redirects users to the appropriate store view or website based on their geographic location. Uses MaxMind to detect location and ensures correct language, currency, and shipping.

12,425
Downloads
Below average
35
GitHub Stars
Below average
8y ago
Last Release
13
Open Issues
Build Issues
2/3 checks passed

Build Tests

Composer Install
DI Compile
Templates

Code Quality

CS Coding Standard
2 errors , 100 warnings
PHPStan Failed

Tested on Magento 2.4.8-p3

Recent Test History

Each release is tested against the latest Magento version at that time.

v2.0.0 on Magento 2.4.8-p3
Dec 28, 2025

Looking for Contributors

Dependency injection compilation fails. Your contribution could help the entire Magento community!

Contribute

Share This Module's Status

Magento2 Geo Store Switcher Magento compatibility status badge

README

Loaded from GitHub

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.

Please follow next instructions to successfully install ToBai Geo Store Switcher in your Magento 2 store.

  1. Disable the cache with this command:

     bin/magento cache:disable
    
  2. Add extension to composer require section using this command:

     composer require tobai/magento2-geo-store-switcher
    
  3. Enable module and upgrade with this commands:

     bin/magento module:enable Tobai_GeoIp2
     bin/magento module:enable Tobai_GeoStoreSwitcher
     bin/magento setup:upgrade
    
  4. 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!

  5. 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.

Since the Store Switcher extension depends on ToBai_GeoIP2 it should be configured previously.

  • First release.
  • 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.

  • Bug: no redirect from non-base url.
  • Refactored the extension.
  • Removed overwriting default store/store group/website.

This content is fetched directly from the module's GitHub repository. We are not the authors of this content and take no responsibility for its accuracy, completeness, or any consequences arising from its use.