GeoIP Library for Magento 2 provides stores with GeoIP Database, which supports to detect the current geolocation of customer using his IP address.
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.
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
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.
GeoIP library is used to develop Magento 2 Store Switcher, Magento 2 Store Locator and Magento 2 Store Pickup by Mageplaza
From the Admin Panel
, go to Stores > Configuration > Mageplaza Extension > Geo IP
, choose Geo IP Configuration
section.
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:
Other free Magento 2 extensions on Github