📊 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
Popular Module Stable v4.0.3

Mageplaza GeoIP Extension

mageplaza/module-geoip

Detects customer geolocation using their IP address. Provides a GeoIP database for location-based functionalities like store switching.

327,806
Downloads
Above average
19
GitHub Stars
Below average
7mo ago
Last Release
4
Open Issues
Build Passing
Ready to install

Build Tests

Composer Install
DI Compile
Templates

Code Quality

CS Coding Standard
54 warnings
L1 PHPStan

Tested on Magento 2.4.8-p3

Recent Test History

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

v4.0.3 on Magento 2.4.8-p3
Dec 28, 2025

Share This Module's Status

Mageplaza GeoIP Extension Magento compatibility status badge

README

Loaded from GitHub

Magento 2 GeoIP Extension

GeoIP Library for Magento 2 provides stores with GeoIP Database, which supports to detect the current geolocation of customer using his IP address.

1. GeoIp Documentation

2. FAQs

Q: I got error: Mageplaza_Core has been already defined

A: Read solution here

Q: What is the library used for?

A: GeoIP library contains the GeoLite 2 geolocation database. Based on this, you can take advantage to build up other advanced functions such as auto-detect customer’ address to suggest stores, switch appropriate language storeview.

3. How to install GeoIP extension for Magento 2

Install via composer (recommend)

Run the following command in Magento 2 root folder:

composer require mageplaza/module-geoip
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy

4. Highlight features

The module is built based on the GeoLite 2 database, also the IP geolocation database. The GeoLite2 Country, City, and ASN databases are updated frequently.

In this free module, the store admin can download the library to get the Geolocation database. The database is the basement to power other advanced location functions (store switching, store locating)

With 2 simple steps, you can download the geodatabase library and enable the module to activate the library and come into usage.

Highlight features

GeoIP library is used to develop Magento 2 Store Switcher, Magento 2 Store Locator and Magento 2 Store Pickup by Mageplaza

5. How to configure the GeoIP module

From the Admin Panel, go to Stores > Configuration > Mageplaza Extension > Geo IP, choose Geo IP Configuration section.

Imgur

  • Enable Geo IP, please select Yes to turn on GeoIP module function which helps you define customers' countries then direct them to the related store views.

  • Download Library button: Click Download Library button to download Geo IP library before enabling it.

People also search:

  • geoip magento 2
  • magento 2 geo ip
  • magento 2 geoip extension
  • magento 2 geoip redirect
  • magento 2 geoip store switcher
  • magento 2 geolocation
  • magento 2 geoip currency switcher

Other free Magento 2 extensions on Github

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.