Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
147 views

GeoIP issue when automatically setting storeview in Magento 2 (`geoip_country_code_by_name` function)

In order to automatically switch store views depending on a user's location we have decided to add the code provided here:Magento 2 pragmatically set storeview to ourindex.php file as shown below: <...
4 votes
1 answer
5k views

magento 2 : Get country from IP address

How to get the name of the country from the ip address in magento 2. I think it will require me to use geoip, but I don't know how to do it. Any help?