WebData Custom Shipping Methods for WooCommerce


Create different types of logics for your shipping based on various options.

Installation instructions here.

Logics can be created based on:
– Weight
– Height
– Width
– Length
– Distance (Uses Google’s Distance Matrix API)
– Destination city
– Shipping class
– Coupons
– Fixed price

Distance based shipping allows you to use different logics, based on minimum and maximum distance. If the conditions are not met you can also disable the shipping method.
See the plugin instructions to set up the distance based shipping.


Installing “WooCommerce distance based fee” can be done either by searching for “WooCommerce distance based fee” via the “Plugins > Add New” screen in your WordPress dashboard, or by using the following steps:

  1. Download the plugin via WordPress.org
  2. Upload the ZIP file through the ‘Plugins > Add New > Upload’ screen in your WordPress dashboard
  3. Activate the plugin through the ‘Plugins’ menu in WordPress
  4. Adjust settings at: Settings – Distance based fee settings


I can not see distance based fee on my checkout

1) Google has changed their policy, and now you need to have a billing account enabled, in order to use their API. More info: https://console.cloud.google.com/project/_/billing/enable

2) Check your plugin settings, you need to have enabled atleast one shipping method for the fee.

3) Check error log for possible errors. You can find the log at the plugin settings page on “Logs” tab.

4) Choose one of the WooCommerce shipping methods at WooCommerce – Shipping and save any of the shipping methods settings once to clear the cache.

5) Make sure you have entered your store location correctly on WooCommerce settings, and Google can locate it through Google Maps.

6) Make sure you have enabled correct API. Try to enable the following APIs: Distance Matrix API, Places API for Web, Google Maps Geocoding API

7) Try to generate new API key and do NOT choose restricted mode.

8) If you still have issues, contact through the Support forum.

I can not see any shipping methods

Check the limits you have setup to the plugin settings. Dimensions should be entered in the same unit of measurement as set in WooCommerce! If you are using centimeters, then the thresholds should also be in centimeters!

Also check if you have chosen to hide the method if distance cannot be found by the distance based shipping option.


April 30, 2020
This plugin works as expected! Really like the distance calculations through Distance Matrix API and offers the functionality we need!. "Personally I would really love to see an option to enable the custom shipping method on certain products because I now have to use a different plugin to do that for me."
Read all 3 reviews

Contributors & Developers

“WebData Custom Shipping Methods for WooCommerce” is open source software. The following people have contributed to this plugin.




  • PHP8 & WC5 check


  • Added argument for woo_custom_shipping_dbf_free_shipping filter


  • Added more filters, see docs at web-data.online for more info


  • City based hiding options
  • Bug fixes


  • Added support for Google API status: ZERO_RESULTS


  • Minor code fixes


  • Added option to disable fixed price if minimum distance is reached
  • Minor code fixes


  • Cart price fix
  • Minor bug fixes


  • Type casting fix


  • Hiding function improved


  • Better mileage support


  • Mode changed to default for Matrix API


  • Bug fixes


  • No Google API calls if destination is empty


  • WP 5.4 check


  • Initial release