=== Distancr - Price by Location for WooCommerce === Contributors: patrickposner Tags: geolocation, geo blacklist, geo block, geo-based prices, WooCommerce Requires at least: 4.6 Tested up to: 5.9 Requires PHP: 7.2 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Stable tag: 1.1.8 Set different prices per customer location in your WooCommerce store with Distancr. == Description == 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](https://www.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: * [ipstack.com](https://ipstack.com/) * [ipapi.com](https://ipapi.com/) * [maxmind.com](https://www.maxmind.com) 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/](https://patrickposner.dev/docs/distancr/options/) == Distancr Pro == There is also an pro version of Distancr which includes the following features: **Rule Editor** * setup an unlimited number of global pricing rules **Multiple Locations** * setup an unlimited number of different locations **Blocklists** * block payment gateways by geolocation / geoip * hide products by geolocation / geoip * block shipping methods by geolocation / geoip **Pricing Per Product / Pricing Per Variation** * set pricing rules per product * set pricing rules for each variation * overwrite global pricing rules == Documentation == I regulary optimize the documentation and release extensive tutorials on how to use Distancr in a multitude of use-cases. Learn more on [patrickposner.dev/docs](https://patrickposner.dev/docs/distancr) == Support == The free support is exclusivly limited to the wordpress.org support form. Any kind of e-mail and priority support requires a valid pro license. === CODING STANDARDS MADE IN GERMANY === The plugin is coded with **modern PHP** and **WordPress standards** in mind. It’s fully OOP coded. It’s highly extendable for developers through several action and filter hooks. Distancr keeps your website performance in mind. Every script is **loaded conditionally** and all input and output data is secured. === MULTI-LANGUAGE === All major texts and information can be modified from the admin area of Distancr. The plugin is **fully translatable** in your language. At the moment there are only en_EN and de_DE, but you can easily add your preferred language as a .po/.mo. It’s also fully compatible with WPML and Polylang. == Screenshots == 1. Distancr Pricing Rules 2. Distancr Locations 3. Distancr Options 3. Distancr Testing == Installation == Distancr is simple to install: 1. Download the .zip' 1. Unzip 1. Upload the directory to your '/wp-content/plugins' directory 1. Go to the plugin management page and enable the Distancr Plugin 1. Browse to WooCommerce->Settings > Distancr 1. Customise your settings and your good to go! == Changelog == = 1.1.8 = * fixed PHP notice for variations * Freemius SDK updated * Removed IP checkup for easier comparisons * default value for priority = 1.1.6 + 1.1.7 = * better TM Extra Product options handling * preventing error if class not exists * bugfix for blocklist * removed comma to prevent error on some server configuration from apply_filters() * WP 5.8 + WooCommerce 5.4 check = 1.1.5 = * prevent issues on some server configurations * improved IP checkup * improved performance * improved TM Extra Product Options support = 1.1.4 = - product price apply bugfix - latest freemius sdk - WooCommerce Extra Product options compatibility - variation price calculation bugfix - fixed sanitizing issue - improved security with nonces for ajax = 1.1.3 = - bugfix to delete all rules - integrated frontend testing tool - improved automatic blacklisting and API Usage = 1.1.2 = - fixed product price comparison for reserved naming in linux = 1.1.1 = - support for multiple shipping methods by method id = 1.1 = - reducing API-Usage - Cleaner code and less conditionals - general location function in plugin main file. - added block ip's option and blacklist - added write log function and option - updated translation - continue for correct pricing rules - easier debug mode - DEBUG constant for locations when logged in as admin. = 1.0 = Initial release.