Title: Gaylord Focker's Replies - page 8 | 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 - 106 through 120 (of 163 total)

[←](https://wordpress.org/support/users/webdata/replies/page/7/?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)…
[7](https://wordpress.org/support/users/webdata/replies/page/7/?output_format=md)
8 [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/9/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WebData Distance Based Fee for WooCommerce] Turnover delivery costs](https://wordpress.org/support/topic/turnover-delivery-costs/)
 *  Plugin Author [Gaylord Focker](https://wordpress.org/support/users/webdata/)
 * (@webdata)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/turnover-delivery-costs/#post-12692554)
 * Plugin uses WooCommerce’s add_fee function. It is not a shipping cost fee, but
   more like an additional fee for the total sum of the order, and you also should
   be able to see the fee amount in the order total sum on WooCommerce’s reports.
 * But maybe this plugin could be more suitable for your needs: [https://wordpress.org/plugins/webdata-custom-shipping-methods-for-woocommerce/](https://wordpress.org/plugins/webdata-custom-shipping-methods-for-woocommerce/)
 * It calculates the distance based cost to the total sum of the shipping costs.
 * Kim
 *   Forum: [Reviews](https://wordpress.org/support/forum/reviews/)
    In reply to:
   [[WebData Distance Based Fee for WooCommerce] HELP ERROR!](https://wordpress.org/support/?post_type=topic&p=12688511)
 *  Plugin Author [Gaylord Focker](https://wordpress.org/support/users/webdata/)
 * (@webdata)
 * [6 years, 4 months ago](https://wordpress.org/support/?post_type=topic&p=12688511#post-12688527)
 * Hi,
 * Please install WooCommerce first, and then activate the _Distance based fee_ 
   plugin.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WebData Distance Based Fee for WooCommerce] Disable shipping by distance](https://wordpress.org/support/topic/disable-shipping-by-distance/)
 *  Plugin Author [Gaylord Focker](https://wordpress.org/support/users/webdata/)
 * (@webdata)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/disable-shipping-by-distance/#post-12688411)
 * There is a hook _dbf\_calculated\_fee_ which can be used to create custom logic.
 * Hooks with examples you can find here: [https://web-data.online/docs/woocommerce-distance-based-fee/#dbf_developers](https://web-data.online/docs/woocommerce-distance-based-fee/#dbf_developers)
 * Kim
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WebData Distance Based Fee for WooCommerce] Disable shipping by distance](https://wordpress.org/support/topic/disable-shipping-by-distance/)
 *  Plugin Author [Gaylord Focker](https://wordpress.org/support/users/webdata/)
 * (@webdata)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/disable-shipping-by-distance/#post-12686895)
 * Hi,
 * Yes, set maximum distance to 10km and then choose “Shipping Conditions – Hide
   shipping methods”. After this choose WooCommerce – Settings – Choose your shipping
   method and save the shipping method’s settings once.
 * Kim
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WebData Custom Shipping Methods for WooCommerce] Some Problem](https://wordpress.org/support/topic/some-problem-2/)
 *  Plugin Author [Gaylord Focker](https://wordpress.org/support/users/webdata/)
 * (@webdata)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/some-problem-2/#post-12681981)
 * Try to update the plugin to the latest version, there was a bug which might be
   related with your issue and it is now fixed.
 * Kim
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WebData Custom Shipping Methods for WooCommerce] Uncaught Error: Call to undefined function formatPriceMatkahuoltoPro()](https://wordpress.org/support/topic/uncaught-error-call-to-undefined-function-formatpricematkahuoltopro/)
 *  Plugin Author [Gaylord Focker](https://wordpress.org/support/users/webdata/)
 * (@webdata)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/uncaught-error-call-to-undefined-function-formatpricematkahuoltopro/#post-12681975)
 * Hi,
 * Thanks for the report. Update the plugin please to fix the error.
 * Kim
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WebData Distance Based Fee for WooCommerce] Turnover delivery costs](https://wordpress.org/support/topic/turnover-delivery-costs/)
 *  Plugin Author [Gaylord Focker](https://wordpress.org/support/users/webdata/)
 * (@webdata)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/turnover-delivery-costs/#post-12675613)
 * You should be able to see the fee amount in the reports, however it won’t be 
   on shipping costs, it is in the total sum fields, with and without taxes.
 * This is how WooCommerce generates the reports. There may be plugins available
   at WordPress.org which will generate more detailed reports. I suggest you to 
   take a look at here: [https://wordpress.org/plugins/](https://wordpress.org/plugins/)
 * Kim
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WebData Distance Based Fee for WooCommerce] Can it use in two different shipping methods?](https://wordpress.org/support/topic/can-it-use-in-two-different-shipping-methods/)
 *  Plugin Author [Gaylord Focker](https://wordpress.org/support/users/webdata/)
 * (@webdata)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/can-it-use-in-two-different-shipping-methods/#post-12671334)
 * Hi,
 * Yes, you can choose which shipping methods you want to apply the fee at the plugin
   settings page. This however will affect all the zones where you use those shipping
   methods.
 * If you need to use zone specific shipping methods with fee, then use this plugin
   instead: [https://wordpress.org/plugins/webdata-custom-shipping-methods-for-woocommerce/](https://wordpress.org/plugins/webdata-custom-shipping-methods-for-woocommerce/)
 * Kim
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WebData Distance Based Fee for WooCommerce] Turnover delivery costs](https://wordpress.org/support/topic/turnover-delivery-costs/)
 *  Plugin Author [Gaylord Focker](https://wordpress.org/support/users/webdata/)
 * (@webdata)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/turnover-delivery-costs/#post-12662251)
 * Hi,
 * I am not exactly sure what do you mean by turnover, but you can see the total
   shipping costs and other order details by clicking the order number in the orders
   view.
 * Kim
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WebData Custom Shipping Methods for WooCommerce] Some Problem](https://wordpress.org/support/topic/some-problem-2/)
 *  Plugin Author [Gaylord Focker](https://wordpress.org/support/users/webdata/)
 * (@webdata)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/some-problem-2/#post-12655363)
 * Hi,
 * See your error_log file for errors. Contact your service provider if you need
   help to locate that file.
 * Kim
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WebData Distance Based Fee for WooCommerce] Duplicate requests](https://wordpress.org/support/topic/duplicate-requests-2/)
 *  Plugin Author [Gaylord Focker](https://wordpress.org/support/users/webdata/)
 * (@webdata)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/duplicate-requests-2/#post-12650196)
 * Sure, please update 🙂
 * Kim
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WebData Distance Based Fee for WooCommerce] Duplicate requests](https://wordpress.org/support/topic/duplicate-requests-2/)
 *  Plugin Author [Gaylord Focker](https://wordpress.org/support/users/webdata/)
 * (@webdata)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/duplicate-requests-2/#post-12617559)
 * Hi,
 * There are two hooks that launches on the checkout. One is for the fee calculation
   and the other one is for the hiding, if the limits are exceeded.
 * I am not quite sure why your checkout launches the API connection 6 times, but
   I think those functions may launch repeatedly if there are several ajax requests
   on the checkout process.
 * Kim
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WebData Distance Based Fee for WooCommerce] Hook Function](https://wordpress.org/support/topic/hook-function/)
 *  Plugin Author [Gaylord Focker](https://wordpress.org/support/users/webdata/)
 * (@webdata)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/hook-function/#post-12573463)
 * Correct hook in that case is
    - woo_custom_shipping_dbf_calculated_fee
    - Here you can find the plugin instructions: [https://web-data.online/docs/woocommerce-custom-shipping-methods/](https://web-data.online/docs/woocommerce-custom-shipping-methods/)
    - Kim
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WebData Distance Based Fee for WooCommerce] Hook Function](https://wordpress.org/support/topic/hook-function/)
 *  Plugin Author [Gaylord Focker](https://wordpress.org/support/users/webdata/)
 * (@webdata)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/hook-function/#post-12572035)
 * Hi,
 * Your code seems to be correct. Check if you receive any errors on your error_log
   file. You can also try to log those variables to see if they return the correct
   values.
 * You can find the filter itself on line 227 inside the _includes/class-woocommerce-
   distance-based-fee-functions.php_ file.
 * > [Debugging in WordPress](https://wordpress.org/support/article/debugging-in-wordpress/)
 * [https://developer.wordpress.org/reference/functions/apply_filters/](https://developer.wordpress.org/reference/functions/apply_filters/)
 * Kim
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WebData Distance Based Fee for WooCommerce] Use with alternate country, currency (Vietnam)](https://wordpress.org/support/topic/use-with-alternate-country-currency-vietnam/)
 *  Plugin Author [Gaylord Focker](https://wordpress.org/support/users/webdata/)
 * (@webdata)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/use-with-alternate-country-currency-vietnam/#post-12563855)
 * Glad to hear that! 🙂
 * Have a great day,
    Kim

Viewing 15 replies - 106 through 120 (of 163 total)

[←](https://wordpress.org/support/users/webdata/replies/page/7/?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)…
[7](https://wordpress.org/support/users/webdata/replies/page/7/?output_format=md)
8 [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/9/?output_format=md)