Title: Gaylord Focker's Replies - page 7 | WordPress.org

---

# Gaylord Focker

  [  ](https://wordpress.org/support/users/webdata/)

 *   [Profile](https://wordpress.org/support/users/webdata/)
 *   [Topics Started](https://wordpress.org/support/users/webdata/topics/)
 *   [Replies Created](https://wordpress.org/support/users/webdata/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/webdata/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/webdata/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/webdata/engagements/)
 *   [Favorites](https://wordpress.org/support/users/webdata/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 91 through 105 (of 163 total)

[←](https://wordpress.org/support/users/webdata/replies/page/6/?output_format=md)
[1](https://wordpress.org/support/users/webdata/replies/?output_format=md) [2](https://wordpress.org/support/users/webdata/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/webdata/replies/page/3/?output_format=md)…
[6](https://wordpress.org/support/users/webdata/replies/page/6/?output_format=md)
7 [8](https://wordpress.org/support/users/webdata/replies/page/8/?output_format=md)
[9](https://wordpress.org/support/users/webdata/replies/page/9/?output_format=md)
[10](https://wordpress.org/support/users/webdata/replies/page/10/?output_format=md)
[11](https://wordpress.org/support/users/webdata/replies/page/11/?output_format=md)
[→](https://wordpress.org/support/users/webdata/replies/page/8/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WebData Custom Shipping Methods for WooCommerce] Expected behavior?](https://wordpress.org/support/topic/expected-behavior/)
 *  Plugin Author [Gaylord Focker](https://wordpress.org/support/users/webdata/)
 * (@webdata)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/expected-behavior/#post-12761878)
 * Hi,
 * I can add a feature to the next plugin update, which allows you to control more
   the fixed fee behavior.
 * Kim
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WebData Custom Shipping Methods for WooCommerce] Bug in the total cart price variable (leads to free shipping malfunction)](https://wordpress.org/support/topic/bug-in-the-total-cart-price-value-leads-to-free-shipping-malfunction/)
 *  Plugin Author [Gaylord Focker](https://wordpress.org/support/users/webdata/)
 * (@webdata)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/bug-in-the-total-cart-price-value-leads-to-free-shipping-malfunction/#post-12757956)
 * Hi,
 * Thanks for the report! I will investigate this further and release then a fix.
 * Kim
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WebData Custom Shipping Methods for WooCommerce] Distance * Weight](https://wordpress.org/support/topic/distance-weight/)
 *  Plugin Author [Gaylord Focker](https://wordpress.org/support/users/webdata/)
 * (@webdata)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/distance-weight/#post-12756513)
 * Hi,
 * Not directly possible, but you can do it with a hook: [https://web-data.online/docs/woocommerce-custom-shipping-methods/#developers](https://web-data.online/docs/woocommerce-custom-shipping-methods/#developers)
 * Kim
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WebData Distance Based Fee for WooCommerce] Min distance calculation](https://wordpress.org/support/topic/min-distance-calculation/)
 *  Plugin Author [Gaylord Focker](https://wordpress.org/support/users/webdata/)
 * (@webdata)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/min-distance-calculation/#post-12755148)
 * There are hooks to manipulate the calculation formula, in case you need.
    See
   the docs for more info: [https://web-data.online/docs/woocommerce-custom-shipping-methods/#developers](https://web-data.online/docs/woocommerce-custom-shipping-methods/#developers)
 * Kim
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WebData Distance Based Fee for WooCommerce] Min distance calculation](https://wordpress.org/support/topic/min-distance-calculation/)
 *  Plugin Author [Gaylord Focker](https://wordpress.org/support/users/webdata/)
 * (@webdata)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/min-distance-calculation/#post-12743433)
 * Ok, here is the response:
    {“destination_addresses”:[“Via Giovanni Amendola, 
   5, 98071 Capo d’Orlando ME, Italy”],”origin_addresses”:[“Via Giovanni Amendola,
   25, 98071 Capo d’Orlando ME, Italy”],”rows”:[{“elements”:[{“distance”:{“text”:”**
   0.4 km**“,”value”:395},”duration”:{“text”:”2 mins”,”value”:117},”status”:”OK”}]}],”
   status”:”OK”}
 * So if you add price 1 and divider 1, you should get 0.4EUR for the shipping. 
   If you get any more than that, then check you don’t have any additional fees 
   for your shipping.
 * Minimum and maximum values are used for limiting the shipping method’s visibility.
   You can set the minimum to 3km for example so the shipping method won’t show 
   up until the distance from your shop to customers location is more than 3 kilometers.
 * However you can set up 2 or more shipping methods. One with the fixed fee for
   3km distance. Minimum distance 0, maximum distance 3 and then set fixed fee for
   this shipping method.
 * Then add another shipping method where minimum distance is 3.1 and maximum distance
   is some large number, e.g. 9999. Then add the divider and fee as you wish and
   leave the fixed fee field empty.
 * Kim
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WebData Custom Shipping Methods for WooCommerce] minimum distance not working since last update](https://wordpress.org/support/topic/minimum-distance-not-working-since-last-update/)
 *  Plugin Author [Gaylord Focker](https://wordpress.org/support/users/webdata/)
 * (@webdata)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/minimum-distance-not-working-since-last-update/#post-12741426)
 * Great, happy to help! 🙂
 * Kim
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WebData Distance Based Fee for WooCommerce] Min distance calculation](https://wordpress.org/support/topic/min-distance-calculation/)
 *  Plugin Author [Gaylord Focker](https://wordpress.org/support/users/webdata/)
 * (@webdata)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/min-distance-calculation/#post-12741424)
 * Hi,
 * Can you give me origin address and destination address, so I can check the API
   response and I can try to recreate your issue myself.
 * Kim
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WebData Custom Shipping Methods for WooCommerce] minimum distance not working since last update](https://wordpress.org/support/topic/minimum-distance-not-working-since-last-update/)
 *  Plugin Author [Gaylord Focker](https://wordpress.org/support/users/webdata/)
 * (@webdata)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/minimum-distance-not-working-since-last-update/#post-12738383)
 * Ok, I added type casting on that, which should fix that error. However, I am 
   not quite sure why you got that error in the first place, so please check you
   have entered correct values to those fields.
 * Kim
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WebData Custom Shipping Methods for WooCommerce] minimum distance not working since last update](https://wordpress.org/support/topic/minimum-distance-not-working-since-last-update/)
 *  Plugin Author [Gaylord Focker](https://wordpress.org/support/users/webdata/)
 * (@webdata)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/minimum-distance-not-working-since-last-update/#post-12728422)
 * I guess this topic is related to the previous one, so:
 * – Set one shipping method with fixed fee, 0 distance based fee, divider 1, minimum
   distance limit to 0 and maximum distance limit to 100 miles.
 * – And another one with 0 fixed fee and with distance based fee 1 (or anything
   you want), divider 1, minimum distance limit to 100 miles and maximum distance
   limit to 9999 (or any large number)
 * Kim
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WebData Custom Shipping Methods for WooCommerce] Distance Based Fee Calculating too High](https://wordpress.org/support/topic/distance-based-fee-calculating-too-high/)
 *  Plugin Author [Gaylord Focker](https://wordpress.org/support/users/webdata/)
 * (@webdata)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/distance-based-fee-calculating-too-high/#post-12725030)
 * I guess you could use two shipping methods in a same shipping zone. One with 
   fixed fee and maximum limited distance to 10 miles and another one with distance
   based fee and minimum limited distance to 10 miles. Also add the maximum distance
   to some huge number, like 9999 for example.
 * Also update the plugin first – Hiding function now works better with the latest
   WooCommerce.
 * Kim
    -  This reply was modified 6 years, 3 months ago by [Gaylord Focker](https://wordpress.org/support/users/webdata/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WebData Custom Shipping Methods for WooCommerce] Customers location data](https://wordpress.org/support/topic/customers-location-data/)
 *  Plugin Author [Gaylord Focker](https://wordpress.org/support/users/webdata/)
 * (@webdata)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/customers-location-data/#post-12718840)
 * Registering is free for the API and you can use quite large number of requests
   before you need to pay anything, so feel free to test drive the plugin by yourself.
 * Destination city and address are required fields.
 * Kim
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WebData Custom Shipping Methods for WooCommerce] Customers location data](https://wordpress.org/support/topic/customers-location-data/)
 *  Plugin Author [Gaylord Focker](https://wordpress.org/support/users/webdata/)
 * (@webdata)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/customers-location-data/#post-12712794)
 * Hi,
 * Plugin uses shipping details the user enters at the checkout page to calculate
   the distance between your shop and the customer’s location.
 * You can set maximum and/or minimum distances for the distance based fee and it
   does not matter how close or far your clients location is.
 * Kim
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WebData Custom Shipping Methods for WooCommerce] Distance Based Fee Calculating too High](https://wordpress.org/support/topic/distance-based-fee-calculating-too-high/)
 *  Plugin Author [Gaylord Focker](https://wordpress.org/support/users/webdata/)
 * (@webdata)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/distance-based-fee-calculating-too-high/#post-12712780)
 * Here is the API response:
 * distance: 10.4 mi
    value: 16787
 * I guess distance is fine, but value seems to be in meters. It seems Google API
   does not change the value, no matter if you use imperial or metric units parameter.
 * I made now a little adjustment to the plugin code, so it will turn meters in 
   to miles if you have chosen “Units – Miles” at the shipping method settings.
 * Hopefully this little fix will help you to get more accurate pricing for the 
   shipping.
 * Kim
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WebData Custom Shipping Methods for WooCommerce] Distance Based Fee Calculating too High](https://wordpress.org/support/topic/distance-based-fee-calculating-too-high/)
 *  Plugin Author [Gaylord Focker](https://wordpress.org/support/users/webdata/)
 * (@webdata)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/distance-based-fee-calculating-too-high/#post-12707444)
 * Can you give the origin address and destination address, so I can check the API
   response.
 * You can use either “Fixed price” or “Handling costs” fields to add the base price.
 * Kim
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WebData Custom Shipping Methods for WooCommerce] Distance Based Fee Calculating too High](https://wordpress.org/support/topic/distance-based-fee-calculating-too-high/)
 *  Plugin Author [Gaylord Focker](https://wordpress.org/support/users/webdata/)
 * (@webdata)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/distance-based-fee-calculating-too-high/#post-12705172)
 * Hi,
 * 1) You can use base price for the shipping method. So you can set the minimum
   distance to 10 miles and then start to charge per mile.
 * 2) I believe API picks the fastest route and mode is “driving”.
 * Also please note taxes affects the total cost as well.
 * Kim

Viewing 15 replies - 91 through 105 (of 163 total)

[←](https://wordpress.org/support/users/webdata/replies/page/6/?output_format=md)
[1](https://wordpress.org/support/users/webdata/replies/?output_format=md) [2](https://wordpress.org/support/users/webdata/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/webdata/replies/page/3/?output_format=md)…
[6](https://wordpress.org/support/users/webdata/replies/page/6/?output_format=md)
7 [8](https://wordpress.org/support/users/webdata/replies/page/8/?output_format=md)
[9](https://wordpress.org/support/users/webdata/replies/page/9/?output_format=md)
[10](https://wordpress.org/support/users/webdata/replies/page/10/?output_format=md)
[11](https://wordpress.org/support/users/webdata/replies/page/11/?output_format=md)
[→](https://wordpress.org/support/users/webdata/replies/page/8/?output_format=md)