Standard WooCommerce shipping zones work well enough for businesses that ship nationally or internationally using fixed carrier rates, but the moment your business delivers locally and pricing needs to reflect the actual distance traveled, the default shipping configuration runs out of answers quickly. A flat rate that is fair for a nearby customer overcharges the one next door and undercharges the one at the edge of your delivery area. Manual zone management becomes a maintenance burden as delivery areas expand and contract. And there is no built-in mechanism for calculating a shipping cost that scales proportionally with the distance between your warehouse and the customer’s door. WooCommerce Distance Rate Shipping solves all of this by connecting WooCommerce shipping calculations directly to real geographic distance data.
Available on CodeCanyon and built specifically to address the gap between WooCommerce’s zone-based shipping model and the distance-based pricing that local delivery businesses actually need, WooCommerce Distance Rate Shipping uses the Google Maps Distance Matrix API to calculate the real-world distance or travel time between your store’s origin address and each customer’s shipping address, and then applies your configured pricing rules to that measurement to generate an accurate, fair, and automatically calculated shipping cost at checkout.
What Is WooCommerce Distance Rate Shipping
WooCommerce Distance Rate Shipping is a premium WooCommerce plugin that adds a new shipping method to your store that calculates shipping costs based on the measured distance or estimated travel time between your configured origin address and the customer’s delivery address. Rather than assigning flat rates to manually drawn geographic zones, the plugin queries the Google Maps Distance Matrix API in real time during checkout to determine the actual road distance or driving time to the customer’s location and applies your tiered pricing rules to generate a precise shipping cost.
The plugin is designed for businesses where delivery cost is genuinely a function of how far the driver or courier travels, including restaurants, grocery delivery services, local furniture and appliance retailers, florists, laundry services, contractors, and any other business that offers local delivery and needs checkout shipping prices to reflect operational delivery costs accurately.
Key Features
| Feature | Description |
|---|---|
| Real-Time Distance Calculation | Uses Google Maps Distance Matrix API to calculate actual road distance to customer address at checkout |
| Distance and Time Based Pricing | Configure shipping rates based on distance in kilometers or miles, or based on estimated travel time |
| Tiered Rate Tables | Create multiple pricing tiers that apply different rates at different distance or time thresholds |
| Multiple Origin Addresses | Configure multiple store or warehouse locations and calculate distance from the nearest origin point |
| Delivery Radius Restriction | Set a maximum delivery distance or time beyond which the shipping method is hidden at checkout |
| Per Unit Distance Pricing | Charge a fixed base rate plus a variable rate that multiplies by the calculated distance |
| Minimum and Maximum Charges | Set floor and ceiling prices to prevent unrealistically low or high calculated shipping costs |
| Shipping Class Support | Apply different distance rate calculations to different WooCommerce shipping classes |
| Real Road Distance Calculation | Uses actual road distance rather than straight-line aerial distance for accurate delivery cost modeling |
| Driving Time Option | Alternative to distance-based pricing using estimated driving time as the pricing variable |
Pricing Configuration Options
| Configuration Type | How It Works |
|---|---|
| Flat Rate Per Tier | Fixed shipping cost applied when distance falls within a defined range |
| Per Kilometer Rate | Base rate plus a charge multiplied by the total distance in kilometers |
| Per Mile Rate | Base rate plus a charge multiplied by the total distance in miles |
| Per Minute Rate | Base rate plus a charge multiplied by the estimated driving time in minutes |
| Tiered Distance Bands | Different flat rates applied at different distance thresholds such as 0-5km, 5-10km, and 10-20km |
| Progressive Rate Increase | Shipping cost that increases incrementally as distance moves through defined threshold bands |
| Minimum Order Eligibility | Require a minimum cart total before the distance rate shipping method becomes available |
| Free Delivery Threshold | Configure a cart total above which distance rate shipping is offered free of charge |
| Per Item Surcharge | Add a per-item handling fee on top of the distance-calculated delivery cost |
| Weight Based Adjustment | Modify the distance rate calculation based on the total weight of the order |
Distance Calculation Methods
| Method | Best Suited For |
|---|---|
| Driving Distance | Road-based businesses where delivery follows standard road routes |
| Walking Distance | Short-range local delivery services where couriers travel on foot |
| Cycling Distance | Bicycle courier and delivery services operating in urban environments |
| Straight Line Distance | Air distance calculation for businesses where road routing is less relevant |
| Estimated Driving Time | Time-sensitive delivery businesses where labor cost is based on time rather than distance |
| Estimated Walking Time | Foot courier operations where delivery time determines cost |
Use Cases by Business Type
| Business Type | How Distance Rate Shipping Helps |
|---|---|
| Restaurant Delivery | Charges customers accurately based on delivery distance, making nearby orders more affordable |
| Grocery Delivery | Fair pricing that reflects actual delivery effort across the service area |
| Furniture and Appliance Retail | Delivery cost scales with distance to cover transport and installation team travel costs |
| Florist Delivery | Same-day local delivery pricing that reflects the true cost of each delivery run |
| Laundry and Dry Cleaning | Collection and delivery pricing based on the round trip from the cleaning facility |
| Contractors and Service Businesses | Travel cost calculation for service calls priced by distance from the home office |
| Pharmacy Delivery | Affordable delivery for nearby customers with proportionally higher costs for distant orders |
| Event Catering | Delivery and setup fee calculation based on venue distance from the catering kitchen |
| Building Materials | Heavy goods delivery pricing that accounts for actual transport distance |
| Pet Supply Delivery | Local pet supply delivery with pricing that reflects neighborhood-level distance granularity |
Who Should Use WooCommerce Distance Rate Shipping
Local delivery businesses operating within a defined service area will find WooCommerce Distance Rate Shipping the most practically accurate shipping solution available for WooCommerce. The fundamental problem with flat rates and manual zones for local delivery is that they either over-simplify the pricing to the point where the business loses money on distant orders or over-complicate the configuration to the point where maintaining zone boundaries becomes a part-time job. Distance-based calculation eliminates both problems by making the shipping price a direct and automatic function of the actual delivery cost driver, which is how far the delivery needs to travel.
Restaurant and food delivery businesses that operate within a specific radius and need checkout to reflect the real cost of each delivery run will benefit from the delivery radius restriction feature that hides the shipping method entirely for customers outside the maximum delivery distance. Rather than showing a shipping option to a customer who lives twenty kilometers away and then manually canceling their order when fulfillment is not possible, the plugin simply does not offer delivery to addresses outside your service area, which prevents order management problems before they start.
Furniture, appliance, and large goods retailers that charge for delivery based on distance because their logistics costs genuinely scale with how far the delivery vehicle travels will find the per-kilometer and per-mile rate configurations precisely match their pricing model. A delivery that requires a thirty-minute round trip costs the business differently from one that requires a two-hour round trip, and the pricing the customer sees at checkout should reflect that difference rather than averaging it into a flat rate that is fair to no one.
Multi-location businesses with several warehouses, stores, or fulfillment points that want to calculate delivery distance from the nearest origin rather than a single fixed address will benefit from the multiple origin address feature. When a customer in one part of the city can be fulfilled from a closer warehouse than the main location, the plugin calculates from the nearest origin and presents the more accurate and typically lower shipping cost, which improves conversion and reflects the actual delivery economics of a distributed fulfillment operation.
eCommerce businesses that operate primarily online but offer a premium local delivery option alongside standard national shipping will find WooCommerce Distance Rate Shipping integrates cleanly alongside other shipping methods. When a customer’s address falls within the local delivery radius, they see both the distance-calculated local delivery option and whatever standard shipping methods are configured for their zone. Customers outside the radius see only the standard shipping options, with no manual management required to maintain that boundary.
WooCommerce Distance Rate Shipping vs Other Shipping Solutions
| Feature | Distance Rate Shipping | WooCommerce Table Rate | WooCommerce Flat Rate | WooCommerce Zones | ShipStation |
|---|---|---|---|---|---|
| Real Distance Calculation | Yes | No | No | No | No |
| Google Maps Integration | Yes | No | No | No | No |
| Delivery Radius Restriction | Yes | No | No | No | No |
| Per Kilometer Pricing | Yes | No | No | No | No |
| Multiple Origin Points | Yes | No | No | Limited | Yes |
| Travel Time Pricing | Yes | No | No | No | No |
| Automatic Rate Calculation | Yes | No | No | No | Partial |
| Minimum Order Requirement | Yes | Yes | Yes | Yes | No |
| Shipping Class Support | Yes | Yes | Yes | Yes | Yes |
| One-Time Price | Yes | Yes | Free | Free | No, monthly |
How to Install WooCommerce Distance Rate Shipping
Download the WooCommerce Distance Rate Shipping zip file from WPDropzone. Ensure WooCommerce is already installed and active before proceeding as the plugin requires WooCommerce to function. In your WordPress admin panel navigate to Plugins, click Add New, then Upload Plugin, and select the downloaded zip file. Click Install Now and activate the plugin once installation completes. After activation navigate to WooCommerce and then Settings, click the Shipping tab, and add the Distance Rate Shipping method to the appropriate shipping zone. Within the method settings, enter your Google Maps Distance Matrix API key, configure your origin address or addresses, set your distance thresholds and corresponding rates, configure your delivery radius limit if applicable, and save the settings. The shipping method will immediately begin calculating real-time distance-based rates for customers whose addresses fall within the configured delivery area during checkout.
Frequently Asked Questions
Does WooCommerce Distance Rate Shipping require a Google Maps API key? Yes. The plugin uses the Google Maps Distance Matrix API to calculate real road distances between the origin address and customer delivery addresses, and accessing this API requires a Google Maps API key with the Distance Matrix API enabled. The API key is obtained through the Google Cloud Console and the Distance Matrix API includes a monthly free usage tier that covers a substantial number of distance calculations before any charges apply, making it cost-effective for most local delivery businesses operating at typical order volumes.
Does the plugin calculate driving distance or straight-line aerial distance? By default, WooCommerce Distance Rate Shipping calculates actual road distance using the driving route that Google Maps would use for navigation, which is the most accurate and relevant measurement for businesses that deliver by vehicle. The plugin also supports straight-line distance calculation and can be configured to use walking or cycling distance for businesses where those travel modes are more relevant to their delivery operations.
Can I set a maximum delivery distance beyond which the shipping option is not shown? Yes. The delivery radius restriction feature allows you to configure a maximum distance or travel time beyond which the distance rate shipping method is hidden entirely at checkout. Customers whose addresses fall outside this maximum will not see the local delivery option, preventing orders from being placed for addresses that are outside your operational delivery area. This is one of the most practically useful features for businesses that have a defined local service area and need the checkout experience to reflect that boundary accurately.
How does the plugin handle multiple items in the cart with different shipping classes? WooCommerce Distance Rate Shipping includes shipping class support that allows you to configure different distance rate calculations for products assigned to different WooCommerce shipping classes. You can apply a standard per-kilometer rate to most products and a higher rate to oversized or heavy items assigned to a different shipping class, with the final checkout shipping cost reflecting the appropriate calculation for the product mix in the customer’s cart.
Is the distance calculation performed in real time during checkout? Yes. The plugin queries the Google Maps Distance Matrix API in real time when the customer enters or updates their shipping address during checkout. The calculated distance is used immediately to determine which pricing tier applies and generate the shipping cost displayed to the customer. The real-time calculation ensures that the shipping cost always reflects the actual distance to the customer’s specific address rather than an approximation based on postcode or region.
Can I offer free delivery above a certain order total while still using distance-based pricing for smaller orders? Yes. WooCommerce Distance Rate Shipping includes a free delivery threshold configuration that makes the shipping method free for orders above a cart total you define. Below that threshold, the standard distance-based rate calculation applies. This allows you to use distance pricing as the baseline while incentivizing larger orders with free delivery, which is a common and effective pricing strategy for local delivery businesses looking to increase average order value.
⚠️ Disclaimer: This plugin/theme is for personal use and practice only. Run a malware scan before use. For commercial use, purchase a license from the official website.
📦 Download
⬇️ Download Distance Rate Shipping for WooCommerce
⚠️ Scan file with antivirus before use.