loader image
Cryt is a Company that is inspired by how far IT technologies has brought us and strive to help others unlock their full potential.

MaxMind Geolocation Integration

Written by jemric

April 8, 2021

Note: While you can only generate 25 license keys on MaxMind, it seems that the same license can be used on multiple sites.

WooCommerce allows shop owners to automatically geolocate customers and display tax rates and shipping methods specific to a customer’s location. In order to determine the correct location for a customer, as of version 3.9+, WooCommerce uses an integration with MaxMind Geolocation.

MaxMind Geolocation Integration setup:

  • Go to: WooCommerce  > Settings > General
  • Head to the General options section.
  • In the “Default customer address” dropdown, choose “Geolocate” or “Geolocate (with page caching support)”

After geolocation is enabled, you need to create a MaxMind account and finish configuring the MaxMind Geolocation in the integrations tab in the WooCommerce settings.

Create an account on MaxMind

  • Create an MaxMind Geolocation account
  • On the registration page, complete the form with your information. If you’re not sure what to choose as “Industry” and “Intended use” fields you can fill as “eCommerce” and “Price localization” respectively.
  • After submitting you’ll get an email with a link to set your password shortly. Click on that link and choose a password.
MaxMind sign up form

Create a MaxMind License Key

Now that you have an account on the MaxMind website you will be able to create a license key.

MaxMind license keys page

Next, fill in the form to generate a license key.

  • Add a description (just as the name of your store)
  • Choose “No” next to “Will this key be used for GeoIP Update?”
  • Select “Confirm”.
MaxMind confirm license key page

You will be presented with a new key. Copy this key straight away as it will be shown only once.

MaxMind license key created page

Add MaxMind Geolocation License Key to WooCommerce settings

Finally, you need to add this key to your WooCommerce settings.

  • Go to: WooCommerce > Settings > Integration > MaxMind Geolocation
  • Paste the license key
  • Select “Save changes”

Now your WooCommerce store is ready to geolocate customers with the MaxMind Geolocation Integration.

Updating the database

The system is set to automatically update every 15 days, using the built-in WordPress function WP Cron to trigger `woocommerce_geoip_updater`.

If the mmdb file on your server doesn’t seem to be updated correctly after this time, you can install the following plugin that will help you troubleshoot scheduled events in WordPress: WP Crontrol.

Once the plugin is installed and active, you can go to Tools > Cron Events, check the next scheduled time for this event, and optionally run it manually.

View our templates

View our massive template libary!
Start your website off with a confidence.

Hosting

Learn about our hosting and why litespeed WordPress servers live up to the name!

Customizing

Find out why DIvi gives you full control to modify and update the website as you wish, with no code!

Troubleshooting

Contact our team and we dignoise your website problems and bugs. Fix, patch and explain the issue to you.

Search Based on Categories?

Over 100 Articles & 12 Online courses Still Can’t Find What You’re Looking For?
Have a look at our Online Courses!

Wordpress

WordPress is a free and open-source content management system written in PHP and paired with a MySQL or MariaDB database. Features include a plugin architecture and a template system, referred to within WordPress as Themes.

DIVI

WordPress is a free and open-source content management system written in PHP and paired with a MySQL or MariaDB database. Features include a plugin architecture and a template system, referred to within WordPress as Themes.

Learn Dash

The online course platform created by e-learning experts. With LearnDash you have complete control when selling your online courses. Choose the pricing model, up-sell offerings, reminder notifications, and watch your sales soar!

Documents

Over 100 Articles & 60 Video Tutorials. Still Can’t Find What You’re Looking For?

Scrapy advanced

Advanced tutorial on using the scrapy framework for business applications

The Why and How of SEO

The world of search engine optimization is complex and ever-changing, but you can easily understand the basics, and even a small amount of knowledge can make a big difference.

Join Today