About magento auto set country in checkout

Question: How can we set the dropdown in Magento checkout with countries to the actual country the customer is coming from (on multicountry frontend).

(ofcourse we can set a default per store view - but alas, we have an english version that works for all countries. It would be nice if the country is then already set to the right country)

ideas: read requested country/language in reques? Geoip database?

What is maybe the simplest way? and the maybe the best way?



There are already GeoIp databases. A free one is available here:


Some code samples are already available on GitHub.

Using that you could try to develop your own extension but there are already a few on the market:



| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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