Distancr: The #1 best WooCommerce Geolocation Plugin

As an online store owner, there are many different ways to use the customer’s geolocation to deliver a more personalized shopping experience. Done right, it’s a great way to increase conversions and potentially boost sales.

For example, you can set geo-distance based restrictions on your WooCommerce store for proximity targeting or audience targeting. In addition to this, you can create pricing rules and set up blocklists based on the customer’s distance.

In this article, we’ll explain how you can use the WooCommerce geolocation plugin, Distancr, to set up geo-distance based restrictions. We’ll also show you how you can use the plugin to add and manage locations, create pricing rules, manage product visibility, and create blocklists.

Let’s put everything into context before we begin.

Introducing Distancr

Distancr is a WooCommerce geolocation plugin that allows store owners to modify prices, product visibility, shipping methods, and payment gateways based on geographical distance.

WooCommerce Geolocation with Distancr

In other words, you can decide what appears on your WooCommerce store’s front-end based on the visitor’s geographical distance from your store’s location. The Distancr plugin works with various APIs for maximum precision.

One of the main benefits of using Distancr on your WooCommerce website is that you can implement geolocation marketing strategies to grow your bottom line. It enables shop owners and digital marketers to reach customers using the customer’s location data. As a result, they’re able to get the right products in front of the right consumers at the right time.

Localized marketing enables store owners to put out more targeted messaging and improve customer engagement. In addition, they’re able to create personalized offers and deliver a more satisfying user experience. This is a great way to increase your conversions and, ultimately, boost sales.

The Distancr plugin works by using the visitor’s geo-distance instead of their country, state, or city. This way, store owners are able to modify product prices, set product visibility, and offer shipping methods and payment gateways based on the visitor’s geo-distance.

This is particularly useful for store owners that need to offer shipping options dynamically. For example, if a customer lives in Alaska, their country would technically be the United States of America although the shipping options you offer your Canadian customers would be more suitable to them.

You can also use it to offer customers a discount if they’re, say, within 5 kilometers of a specific location. This is a great way to encourage customers to buy from you and increase sales.

Distancr Key Features

The Distancr plugin is designed for small and large businesses that need an easy way to do WooCommerce Geolocation on their online store. It’s incredibly easy to use and doesn’t require any technical knowledge to get started with.

Let’s take a closer look at the key features on offer with the WooCommerce geolocation plugin.

#1: Multiple Locations

The Distancr plugin lets WooCommerce store owners add and manage multiple locations from the plugin’s settings screen. This makes it easy to sell to customers all over the world.

It’s also worth mentioning that the plugin works seamlessly with Google Autosuggest allowing you to quickly find and add locations to set geo-distance restrictions on. For this, you will need to connect your online store to the Google Maps API. If you choose not to integrate with the Google Maps API, you can still add locations by adding in the latitude and longitude coordinates.

Having the ability to quickly add multiple locations allows store owners to sell to customers all over the country (or all over the world!) the way they want to. Store owners can add as many locations as they want in a few simple clicks.

#2: Pricing Rules with GeoIP

Using the Distancr plugin, store owners can modify the prices of their WooCommerce products in a variety of different ways. Out of the box, the plugin lets you set WooCommerce product prices on a per product, per product variation, or per-category basis. You also have the option to set product prices globally based on the geolocation of your customers.

So, for example, let’s say you sell furniture. You might want to offer 5% off to customers that are located closer to your store. Or, if you run a restaurant, you might offer customers a 10% discount if they’re within 5 kilometers of your restaurant’s physical location. This is possible with the Distancr plugin.

Distancr gives WooCommerce store owners complete control over their products’ pricing. It’s incredibly easy to configure and opens up tons of new possibilities to sell online using different strategies.

#3: Product Visibility Based on GeoIP

One of the main use cases of the Distancr plugin is that it gives store owners granular control over product visibility based on the visitor’s geolocation. In other words, the WooCommerce geolocation plugin lets you show (or hide) WooCommerce product categories based on where the customer is located.

For example, if you sell furniture, you might want to hide certain products from customers that are located far away from your store’s physical location and don’t fall under the areas you can ship to. The Distancr plugin makes this easy to set up. As a result, you’re able to deliver better customer experience through your online store.

Similarly, you can choose to show certain products to customers that are, say, within 100 kilometers of a specified location.

#4: Blocklist

Using the Distancr plugin, WooCommerce store owners can set up a Blocklist to block user access to product categories, shipping methods, and payment gateways with WooCommerce Geolocation.

For example, if a customer is over 100 kilometers away from your online store, you might consider blocking the local pickup shipping method for them. In other words, customers that are over 100 kilometers away from your store won’t see the local pickup option in the list of available shipping methods.

Similarly, if you sell furniture, you might want to offer cash on delivery to customers that are located within 200 kilometers of your store. Customers that are more than 200 kilometers away from your store’s physical location will only be able to make payments via online payment gateways (like PayPal or Stripe).

Distancr’s Blocklist feature gives WooCommerce store owners better control over the products, shipping methods, and payment gateways that appear on their store’s front-end for different types of customers. It’s incredibly easy to set up and takes much of the heavy lifting off your plate.

#5: API Integrations for WooCommerce Geolocation

The Distancr plugin works seamlessly with a variety of API integrations to ensure maximum precision when it comes to calculating the customer’s geo-distance.

ipstack API

You have the option to choose the API provider you’d like to use for this. Out of the box, the options available to you include MaxMind, ipstack, and ipapi. In addition to this, you can also add a Google Maps API for quickly auto-suggesting locations when you add them to your store. This makes it easy to add locations simply by searching for them.

Getting Started With Distancr and WooCommerce Geolocation

As we mentioned earlier, the Distancr plugin enables WooCommerce store owners to set up geo-distance based restrictions in a variety of different ways. In this section, we’ll show you step-by-step how you can get started with Distancr on your own online store.

For this tutorial, we’ll assume you already have the WooCommerce plugin installed and activated on your WordPress website. You’ll also need to get the Distancr plugin and install and activate it on your online store. Once that’s done, simply follow these step-by-step instructions to get started.

Step #1: Configure the plugin settings

Head over to WooCommerce > Settings > Distancr from the WordPress admin panel and click on the Options tab. From here, you can configure the Distancr plugin’s basic settings and options.

Distancr Options tab
  1. Use the Distance Unit dropdown menu to select the units you’d like to configure the geo-distance restrictions in. You can choose between kilometer, miles, and nautical miles.
  2. Next, use the Choose API option to select the API you’d like to use to calculate distance. The available options include maxmind, ipstack, and ipapi.
  3. Enter the API key from your geolocation provider in the API Key text field.
  4. Use the Test Connection option to make sure your API key is working properly.
  5. Optionally, you can enter a Google Maps API Key to quickly auto-suggest locations.
  6. Click the Save changes button to proceed.

Step #2: Manage locations

Navigate to WooCommerce > Settings > Distancr from the WordPress admin panel and click on the Locations tab to add a location.

Distancr Locations tab
  1. Click the Add Location button to get started.
  2. You can set the following options for each location you add:
    1. Unique Name/ID – Enter a name for the location you’d like to add. This makes it easier to quickly select the location without having to enter the coordinates each time.
    2. Latitude – Enter the latitude coordinates of the location you’d like to add.
    3. Longitude – Enter the longitude coordinates of the location you’d like to add.
  3. Repeat these steps to add as many locations as you’d like.
  4. Click the Save Locations button to continue.

Step #3: Set up pricing rules

Go to WooCommerce > Settings > Distancr from the WordPress admin panel and click on the Pricing tab to set up pricing rules.

  1. Click the Add Rule button to get started.
  2. You can set the following options for each pricing rule you create:
    1. Priority – This determines the priority in which the pricing rules are applied. Pricing rules with a higher priority overrule those with lower priority.
    2. Location – Choose a location using the dropdown menu.
    3. Distance – Enter a distance value.
    4. Compare – Select an operator i.e. either less than (<) or greater than (>).
    5. Product Category – Select the product category you’d like to apply the pricing rule to.
    6. Price – Enter the price (or percentage) you’d like to adjust the price by.
    7. Apply to – You can choose to apply the discount to all prices, only regular price, or only sale price using the dropdown menu.
    8. Discount-Type – You can choose from one of five discount types i.e. percentage decrease, percentage increase, fixed decrease, fixed increase, or a fixed amount.
  3. Repeat these steps to add as many pricing rules as you’d like.
  4. Click the Save Rules button to continue.

For example, if you want to create a pricing rule to apply a 5% discount on all t-shirts for customers that live within 100 kilometers of San Francisco, your pricing rule might look something like this:

Distancr Pricing tab

You can also set pricing rules on a per-product (or per-product variation) basis. To do this, simply open the product you’d like to create the pricing rule for in the Edit product screen.

Distancr pricing per-product

Next, scroll down till you reach the Product data section and click on the Distancr tab. Set the pricing rule and click the Update button to continue.

Step #4: Add blocklists

Go to WooCommerce > Settings > Distancr from the WordPress admin panel and click on the Blocklist tab to add a location.

  1. Click the Add Rule button to get started.
  2. You can set the following options for each rule you create:
    1. Location – Choose a location using the dropdown menu.
    2. Distance – Enter a distance value.
    3. Compare – Select an operator i.e. either less than (<) or greater than (>).
    4. Block – You can choose to create a Blocklist rule for Products, Payment Gateway, or Shipping Method.
    5. Product Category/Payment Gateway/Shipping Method – Depending upon what you set the Block option to, you can choose a product category, payment gateway, or shipping method to block.
  3. Repeat these steps to create as many rules as you’d like.
  4. Click the Save Rules button to continue.

For example, if you want to create a blocklist to block all products under the Furniture category for customers who are over 100 miles away from San Francisco, your blocklist rule would look something like this:

Distancr Blocklist tab

Set up geo-distance restrictions on your store

Using the Distancr plugin, you can set up geo-distance restrictions on your WooCommerce store in a variety of different ways. WooCommerce Geolocation lets you modify product prices, set product visibility, and block access to shipping methods and payment gateways.

Distancr makes it easy for WooCommerce store owners to set up geo-distance based restrictions and leverage geolocation marketing. As a result, you can deliver personalized customer experiences, increase sales, and grow your bottom line.

All you have to do is configure the plugin’s settings, add locations, set up pricing rules, and create blocklists. We explained how you can get started with Distancr and, hopefully, you’re in a good position now to take the next steps.

Ready to set up WooCommerce Geolocation? Get the Distancr plugin today.