Distancr gives you the ability to set different prices for your products based on their current location.
This is really useful if you have an online store and a local shop and don't want to argue about different pricing strategies online and offline.
It can also help to setup different prices for different regions within a country or to setup prices on a per country level.
The integrated rule editor provides an flexible and easy way to setup 2 pricing rules for your store.
The integrated location editor enables you to set multiple your location and configure them with your rules.
Features
Pricing
The pricing rule editor let you configure 2 rules for your location.
You can configure:
- priority
- location
- distance (by unit)
- compare (smaller/greater)
- product categories to apply
- price by percent (increase/decrease)
- price by fix value (increase/decrease)
- price by fix amount
- decide which prices to modify (regular/sale/all prices)
Locations
Set your location with latitude and longitude or use Google Maps Autocomplete to find the right location.
If you need an easy way to find latitude or longitude values for your location, take a look here:
latlong.net
Testing
The best testing tool for geolocation. Easily set your another location in the frontend and see how your prices modify in realtime.
This tool is only available for logged-in administrators and with active testing mode (activated by default).
API
To use Distancr you need an API key from one of these three providers:
In case of maxmind, you have to use the webservice.
Additional instructions on how to setup the API providers with Distancr can be found here:
patrickposner.dev/docs/distancr/options/
Distancr is simple to install:
- Download the .zip'
- Unzip
- Upload the directory to your '/wp-content/plugins' directory
- Go to the plugin management page and enable the Distancr Plugin
- Browse to WooCommerce->Settings > Distancr
- Customise your settings and your good to go!