1

Is there any plugin available for automatic detect customer current Geo location in Magento2.3.2 ?

1 Answer 1

0

you can install https://www.mageplaza.com/magento-2-geoip/ extension, also you have to add MaxMind GeoIP2 PHP API https://packagist.org/packages/geoip2/geoip2

Then use below code to get customer country in index.php

$obj = $bootstrap->getObjectManager();
$helper = $obj->get('Mageplaza\GeoIP\Helper\Address');
$country_code = $helper->getGeoIpData();

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.