Title: Expected behavior?
Last modified: April 30, 2020

---

# Expected behavior?

 *  Resolved [Yari Bernardus](https://wordpress.org/support/users/duswebdesign/)
 * (@duswebdesign)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/expected-behavior/)
 * I’ve setup a custom shipping method that makes use of the distance matrix api.
   
   Everything works fine but I see that the distance based fee is added on top of
   the handling price even when the minimum threshold for the amount of km’s is 
   not.
 * we only charge distance based fee after 25km’s with a fixed handling fee regardless
   of km’s.
 * For me this is unexpected, I would rather expect to only see the handling fee
   when the minimum/maximum thresholds are not met.
 * [WORKAROUND] Hide the method when conditions are not met and create a copy with
   the minimum amount as maximum amount and set the distance based fee to 0.
 * Would you elaborate on the question if this is expected or unexpected? and if
   unexepected, can this be fixed?
 * Kind regards,
    Yari
 * PS, amazing plugin 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Gaylord Focker](https://wordpress.org/support/users/webdata/)
 * (@webdata)
 * [6 years, 1 month 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
 *  Thread Starter [Yari Bernardus](https://wordpress.org/support/users/duswebdesign/)
 * (@duswebdesign)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/expected-behavior/#post-12766506)
 * That would be nice!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Expected behavior?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/webdata-custom-shipping-methods-for-
   woocommerce_d395de.svg)
 * [WebData Custom Shipping Methods for WooCommerce](https://wordpress.org/plugins/webdata-custom-shipping-methods-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/webdata-custom-shipping-methods-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/webdata-custom-shipping-methods-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/webdata-custom-shipping-methods-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/webdata-custom-shipping-methods-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/webdata-custom-shipping-methods-for-woocommerce/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Yari Bernardus](https://wordpress.org/support/users/duswebdesign/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/expected-behavior/#post-12766506)
 * Status: resolved