=== Distance Rate Shipping For WooCommerce ===
Contributors: tusharknovator, monikapatel
Tags:Distance, WooCommerce, Shipping, Rate
Requires at least: 4.0
Tested up to: 7.0.1
Requires PHP: 7.4
Stable tag: 1.1.2
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Calculate WooCommerce shipping costs based on the real driving distance between your store and the customer.

== Description ==

For **Woocommerce Distance Rate Shipping**, add the functionality of calculating shipping fees based on the Distance between store and customer.

== KEY FEATURES ==

* Add unlimited methods for shipping zones with distance-based shipping WooCommerce.
* Set distance measurement standards like kilometer/mile with WooCoomerce shipping based on distance.
* Set minimum and maximum order amount rules for shipping method.
* Set minimum and complete order qty rule for shipping method.
* Set minimum and top distance rules for the shipping method.
* Fixed-rate for shipping method.
* Formed custom name/label for shipping method.


= REQUIREMENT =
The plugin requires Google Map’s “Distance Matrix API” to measure the Distance between store address locations and customer shipping addresses.
You have to generate an API key for “Distance Matrix API” by following the official guide from the link below:
[Distance Matrix API documentation](https://developers.google.com/maps/documentation/distance-matrix/overview) 

== ACTIVELY ENGAGED ==
[Knovator Technologies ](https://knovator.com/) believes in active community support, so we try to make life easier for developers and customers with the best **WooCommerce Distance Rate Shipping plugins**. Don’t forget to sign up for our newsletter.


== EXPLORE OUR OTHER PLUGINS TO ENHANCE YOUR WEBSITE ==
<ol>
<li><a href="https://wordpress.org/plugins/auto-delete-system-status-logs/" target="_blank" rel="noreferrer noopener">Auto Delete System Status Logs for WooCommerce</a></li>
<li><a href="https://wordpress.org/plugins/change-default-email-sender-name/" target="_blank" rel="noreferrer noopener">Change Default Email Sender Name</a></li>
<li><a href="https://wordpress.org/plugins/donation-addon-woocommerce/" target="_blank" rel="noreferrer noopener">Donation Addon WooCommerce</a></li>
</ol>

== INSTALLATION ==

1. Go to "https://wordpress.org/plugins/" page.
1. In "Search plugins..." textbox type "Distance Rate Shipping For WooCommerce by tusharknovator" and press enter.
1. click on the showed result "Distance Rate Shipping For WooCommerce".
1. Click on download button and save the plugin zip file on your computer.
1. Download the plugin zip file to your computer
1. Go to the WordPress admin dashboard menu Plugins > Add New
1. Choose Upload Plugin" button which is besides "Add Plugins" at top of page.
1. Upload the plugin zip file, the plugin will now be installed
1. After the installation has finished, click the ‘activate plugin’ link

== Frequently Asked Questions ==

= How to configure Distance Rate Shipping For Woocommerce? =
You can do the following settings on the Distance Rate Shipping For Woocommerce settings page:
1. Distance matrix API key.
2. Distance measurement standard.

= Why we need Distance matrix API key? =
It is necessary to use the Google Maps API to calculate store and customer distance.

= how we can generate Distance matrix API key? =
You can generate it by following the instructions on the page linked just below the API key, or you can follow the official guide from the link below:[Distance Matrix API documentation](https://developers.google.com/maps/documentation/distance-matrix/overview) 



== Screenshots ==
1. Step-by-step setup: configure your API key, add the shipping method to a zone, and set its rates.

== Changelog ==
1.1.2  * Fixed missing URL-encoding on the address sent to the Google Distance Matrix API, which broke distance lookups for most real addresses.
1.1.2  * Fixed unreliable shipping method matching that relied on raw PHP sessions instead of WooCommerce's session API.
1.1.2  * Fixed default Maximum Shipping Distance/Order Amount/Order Qty of 0, which prevented the shipping method from ever matching an order until manually reconfigured.
1.1.2  * Synced plugin version number with the readme's stable tag.
1.1.2  * Tested up to WordPress 7.0.1.
1.0.0  * First public release.


== Upgrade Notice ==
1.1.2 Fixes distance lookups failing for most addresses and the shipping method not working until max fields were manually configured; upgrade recommended.
1.0.0 Added plugin support 