Shipping charge by distance

Here we  see how to set WooCommerce delivery charges by kilometer, and the features we will cover as –

  • Free shipping up to certain kilometer
  • After covering free shipping distance charge per kilometer
  • Shipping charge by distance(km) will be calculated on checkout page based on user’s shipping address

So, how to do that?

We need – WooODT Extended plugin and it’s Map Addon plugin.

Once you activated both plugin navigate to Map options menu on WooODT Extended menu and put Your storehouse address – this is the place from where distance of customers’s shipping address will be calculated

Google map API key – sign in to google map and grab an API key and paste it there.

Mention – Up what kilometer you will provide free shipping, For example- to 30 kilometer there is no shipping charge

Cost per kilometer –  this will be applied to extra kilometer after free kilometer get cover up, if you put it as 2 USD per km and if the customer’s shipping address is 45 km away, so customer will be charged as (45-30)2=30 USD.
Settings page looks like below screen-shot.

Now we are done and lets see what happen on checkout page.

So as per my settings my free delivery area is up to 5 km, and after that it will cost 2 USD/km. and I am choosing an distance that is 9.3 km away from my store house, so when I put my address on checkout page the plugin automatically calculates the distance from store house and heighlight it on Google map and show the distance to customer, like below screen-shot

Now the distance is 9.3 km and we have free delivery up to 5 km, so the cost should be

(9.3 – 5) * 2 = 4.3 * 2 = 8.6 USD

The same is added as delivery charge by distance on total amount to pay, as below screen-shot.

View the product WooODT Extended Map Addon.

read in details how to obtain Google API key here –

*** This plugin will require SSL / https to work. 

How to setup:

About 5 minutes
Necessary Items:

Have any Question or Comment?

4 comments on “Shipping charge by distance

We deliver maximum of 60km radius from our Saint Marys location. The price increases extra 15% from 40km to 50km, 20% from 50km to 60km. the main price coming from product regular price. is it possible with this plugin ?

The page I need help with:

M Dalabar

“The price increases extra 15% from 40km to 50km, 20% from 50km to 60km” this part will require customization, as the original plugin will increase price per km after crossing your defined boundary. For a customized demo please write to requesting this custom functionality.


Leave a Reply

Your email address will not be published. Required fields are marked *

RECENT RELEASES: ByConsole Products

WooODT Extended for Dokan v-1.0.1 released

Whats added in version 1.0.1 Order Type1. Time field validation mechanism and option to make it mandatory option on checkout page. 2. Pre-order Days option added. 3. Minimum wait/lead/preparation time feature added. 4. Same Day Pickup Order Placing Cutout Time added. 5. Same Day Delivery Order Placing Cutout Time added. 6. Next Day Pickup Order […]

WooODT Extended v-1.1.5 released

Whats added in version 1.1.5 Option to hide ODT fields on checkout page Checkout page location auto select and hide location field when there is only one location. Upload your own loading image: Replicate previously added time on next location on location settings page Option to customize warning text when pickup/delivery date time left blank […]

WooODT Order Details v-3.0.1 released

Whats added in version 3.0.1 New menu added to get total number of each products to be delivered today/ any upcoming date range. New menu added to get total number of each products need to be ready for pick up on today/ any upcoming date range. This version is last time tested withWordPress version: 5.5.3WooCommerce […]

WooCommerce Product Repeat Delivery Dates v-1.0.1 released

Whats added in version 1.0.1 Pre-order Days Number Of open Months(Calendar) Pre-order Days Restriction Delivery Time(Hours): Minimum cart Price(One Day Delivery): amount after which shipping is free Maximum cart Price(All Day Delivery):amount after which shipping is free. Delivery areas and prices Holidays  day wise and date wise. Delivery report – User wise search and delivery […]

WooODT Extended v-1.1.2 released

Whats added in version 1.1.2 Option to make time optional on checkout page. Limit per custom slot glitch fixed. Japanis & Arabic language(calendar) support added. This version is tested withWordPress version: 5.4.1WooCommerce version: 4.0.1PHP version: 7.2 View plugin details here.