Gaylord Focker
Forum Replies Created
-
Forum: Plugins
In reply to: [WebData Distance Based Fee for WooCommerce] Turnover delivery costsPlugin 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://ww.wp.xz.cn/plugins/webdata-custom-shipping-methods-for-woocommerce/
It calculates the distance based cost to the total sum of the shipping costs.
Kim
Forum: Reviews
In reply to: [WebData Distance Based Fee for WooCommerce] HELP ERROR!Hi,
Please install WooCommerce first, and then activate the Distance based fee plugin.
Forum: Plugins
In reply to: [WebData Distance Based Fee for WooCommerce] Disable shipping by distanceThere 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
Kim
Forum: Plugins
In reply to: [WebData Distance Based Fee for WooCommerce] Disable shipping by distanceHi,
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
In reply to: [WebData Custom Shipping Methods for WooCommerce] Some ProblemTry 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
Hi,
Thanks for the report. Update the plugin please to fix the error.
Kim
Forum: Plugins
In reply to: [WebData Distance Based Fee for WooCommerce] Turnover delivery costsYou 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 ww.wp.xz.cn which will generate more detailed reports. I suggest you to take a look at here: https://ww.wp.xz.cn/plugins/
Kim
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://ww.wp.xz.cn/plugins/webdata-custom-shipping-methods-for-woocommerce/
Kim
Forum: Plugins
In reply to: [WebData Distance Based Fee for WooCommerce] Turnover delivery costsHi,
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
In reply to: [WebData Custom Shipping Methods for WooCommerce] Some ProblemHi,
See your error_log file for errors. Contact your service provider if you need help to locate that file.
Kim
Forum: Plugins
In reply to: [WebData Distance Based Fee for WooCommerce] Duplicate requestsSure, please update 🙂
Kim
Forum: Plugins
In reply to: [WebData Distance Based Fee for WooCommerce] Duplicate requestsHi,
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
In reply to: [WebData Distance Based Fee for WooCommerce] Hook FunctionCorrect 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/
Kim
Forum: Plugins
In reply to: [WebData Distance Based Fee for WooCommerce] Hook FunctionHi,
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.
https://developer.ww.wp.xz.cn/reference/functions/apply_filters/
Kim
Glad to hear that! 🙂
Have a great day,
Kim