tete2soja / magento2-geoip
Customer country lookup based off their ip address
Installs: 190
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 9
Open Issues: 0
Type:magento2-module
Requires
- php: ~5.6.0|7.0.2|7.0.4|~7.0.6|~7.1.0|~7.1.3|~7.2.0|~7.3.0|~7.4.0|~8.0.0|~8.1.0|~8.2.0
- geoip2/geoip2: ~2.0
- magento/framework: 100.0.*|100.1.*|101.0.*|102.0.*|103.0.*
- magento/module-backend: 100.0.*|100.1.*|100.2.*|101.0.*|102.0.*
This package is auto-updated.
Last update: 2024-10-26 09:56:10 UTC
README
Magento2 GeoIp Extension by MagePal
Automatically detect your visitor country code base on their Ip Address in Magento2.
Base Module for
- GeoIp Country Redirect with Varnish Support by MagePal
- Quick Checkout by MagePal.
Usage
public function __construct(
...
\MagePal\GeoIp\Service\GeoIpService $geoIpService,
....
) {
...
$this->geoIpService = $geoIpService;
}
$countryCode = $this->geoIpService->getCountryByIpAddress('128.0.0.101');
//or
$countryCode = $this->geoIpService->getCountry();
Step 1
Using Composer (recommended)
composer require magepal/magento2-geoip
Manually (not recommended)
- Download the extension
- Unzip the file
- Create a folder {Magento 2 root}/app/code/MagePal/GeoIp
- Copy the content from the unzip folder
- Install GeoIP2 Package
composer require geoip2/geoip2:~2.0
Step 2 - Enable extension ("cd" to {Magento root} folder)
php -f bin/magento module:enable --clear-static-content MagePal_GeoIp
php -f bin/magento setup:upgrade
Contribution
Want to contribute to this extension? The quickest way is to open a pull request on GitHub.
Support
If you encounter any problems or bugs, please open an issue on GitHub.
Need help setting up or want to customize this extension to meet your business needs? Please email support@magepal.com and if we like your idea we will add this feature for free or at a discounted rate.
Magento 2 Extensions
- Custom SMTP
- Catalog Hover Image for Magento
- Enhanced Success Page for Magento 2
- Enhanced Transactional Emails for Magento 2
- Google Tag Manager
- Enhanced E-commerce
- Reindex
- Custom Shipping Method
- Preview Order Confirmation
- Guest to Customer
- Admin Form Fields Manager
- Customer Dashboard Links Manager
- Lazy Loader
- Order Confirmation Page Miscellaneous Scripts
- HTML Minifier for Magento2
© MagePal LLC. | www.magepal.com