Distance Rate Shipping for WooCommerce

Original GPL Asset Updated 🧪 Virus-Scanned (0/70 Clean)
Distance Rate Shipping for WooCommerce
Live Demo
⚡ Instant Direct Download 🌐 Unlimited Domains 🛡️ Original GPL File
$5.00 one-time
Lifetime Updates
⚡ Unlock all 7 categories + this asset
🛡️ 1-Click cancel anytime in dashboard
Add to Cart
Actively maintained repository updates
VirusTotal verified (0/70 detected)
Licensed under GPL
Secure 256-bit encrypted checkout
Instant download link via email & dashboard

Distance Rate Shipping for WooCommerce Overview & Distance-Driven Rate Engine

Distance Rate Shipping for WooCommerce is a WordPress plugin engineered for store operators and agencies that deliver goods themselves and must price freight by real-world travel distance and duration. The plugin resolves the core bottleneck of WooCommerce’s native shipping zones, which cannot price delivery according to how far a customer sits from the point of origin, by registering a custom shipping method and querying the Google Distance Matrix API at checkout. In production workflows, administrators define rule matrices combining distance, duration, weight, volume, and cart parameters, and the engine returns a computed rate to the customer before order confirmation.

Technical Specifications & Deployment Matrix

Engineering Metric Deployment Specification
Base Technology / Framework WordPress plugin (PHP, JavaScript, HTML, CSS) extending WooCommerce shipping methods
Runtime Compatibility WordPress 6.0.x through 6.8.x; WooCommerce 7.x, 8.x, and 9.x; PHP 8 compatible; WooCommerce HPOS compatible
Data Exchange / Communication Protocols Google Distance Matrix API (Google Maps API) for distance and duration calculation between origin and destination addresses
Front-End Dependencies Chrome, Firefox, and Edge browsers; checkout address autofill; cart page rule messaging
Database / Persistence Footprint Rules stored with enable, disable, edit, and delete states; debug logging; shipping zone instance bindings

Rule-Based Rate Calculation & Execution Pipeline

The engine computes shipping cost by matching cart state against configurable rule ranges before returning a rate to the checkout pipeline. On each cart or checkout request, the plugin captures the customer’s full destination address, pairs it with the configured origin address, and dispatches a Distance Matrix API call that returns measured distance and estimated travel duration. The returned values are then evaluated against the active rule set, where conditions on kilometers or miles, minimum and maximum cart quantity, cart value thresholds, item weight ranges, and volume ranges (defined in From/To boundaries) determine which rule applies. Matched rules can apply a base cost, a cost per distance unit multiplied by the measured distance, a cost per weight, per-item pricing, and configurable handling fees, including support for negative cost values to model discounts when a maximum cart amount condition is met. Because shipping is bound to measured distance rather than predefined zones, stores that fulfill their own deliveries can price freight proportionally to actual delivery effort.

Core Technical Capabilities of Distance Rate Shipping for WooCommerce

  • Unlimited rule matrices with compound conditions: Administrators can create any number of rules combining distance, duration, weight, height, width, and length parameters, each with independent rate values and editable lifecycle states (enable, disable, edit, delete).
  • Dual unit pricing with per-unit multiplication: The engine supports both kilometers and miles, computes cost by multiplying the measured distance by a per-unit rate, and applies base costs, per-weight costs, and handling fees within a single rule.
  • Multi-origin fulfillment through inventory synchronization: When paired with the WooCommerce Multi Locations Inventory Management plugin, distance is calculated from the physical location holding the inventory, enabling multiple origin addresses for delivery rather than a single store address.
  • Checkout address autofill and cart validation: The plugin autofills address fields at checkout and surfaces rule-driven messages on the cart page, including minimum cart amount error notifications.
  • Debug logging and admin observability: A built-in debug log records calculation behavior, and filters allow administrators to hide or show optional columns in the rules table for a streamlined configuration view.

Production Implementation & Operational Resilience

Deployment requires a Google Maps API credential with the Distance Matrix service enabled, since the plugin depends on that external service for every distance and duration computation; without a valid key, rate calculation cannot resolve. Administrators should validate that the shipping instance is attached to the correct WooCommerce shipping zone, since version 1.1.9 introduced the ability to create distance rules per shipping instance. The changelog documents hardening work agencies should note when staging client builds: PHP 8 warning fixes, database error corrections after activation, cart page quantity update fixes, HPOS compatibility resolution, and validation logic preventing null or space values from being accepted in rule fields. Rule matching has been corrected for edge cases, including scenarios where all parameters are filled in a rule and cases where empty or zero rules previously failed to apply. For operational observability after deployment, pairing the store with WooCommerce Dashboard Widgets Stats gives administrators visual confirmation of how distance-priced orders influence sales and order KPIs directly from the WordPress dashboard. Marketplaces running vendor-driven fulfillment can operate this plugin alongside Product Vendors for WooCommerce Pro, where vendor commissions and payouts complement distance-based delivery pricing in multi-seller logistics chains. For decoupled implementations outside WordPress, Cargomax exists as an independent Next.js admin dashboard template for shipping and logistics operations, following a separate custom-code path rather than sharing this plugin’s runtime.

Frequently Asked Questions

Does the plugin require a Google Distance Matrix API key to calculate shipping rates?

Yes, the plugin uses the Google Distance Matrix API (Google Maps API) to calculate distance and duration between the origin and the customer’s delivery address, so a working Google Maps API credential is a deployment prerequisite.

Can shipping rules be conditioned on product weight and volume ranges?

Yes, since version 1.2.11 rules can be created using weight ranges and volume ranges defined in From and To formats, alongside conditions on height, width, length, cart quantity, and cart value.

Is the plugin compatible with WooCommerce High-Performance Order Storage (HPOS)?

Yes, version 1.3.4 of the changelog explicitly resolves compatibility issues with WooCommerce HPOS, allowing the shipping method to operate on stores running the modern order storage architecture.

Can shipments originate from multiple store locations without additional plugins?

No, multi-origin delivery with distance calculated from each item’s inventory location requires the WooCommerce Multi Locations Inventory Management plugin; a single origin address works without it.

🏷️ Topic Tags:
#Premium Plugin
On this page