Gaylord Focker
Forum Replies Created
-
I updated the plugin now, as it takes 2 arguments for fixed price, one as float and another one as a string. This has to be returned as a float.
Please see the docs for the other two filters I also added: https://web-data.online/docs/woocommerce-custom-shipping-methods/#developers
Kim
Ok, how about if I add the price as a string, and pass it as second argument to the filter, would it help?
Then you could do something like this:
add_filter(‘woo_custom_shipping_dbf_fixed_price’, ‘my_function’, 100, 2);
my_function($price_as_float, $price_as_string) {
// Here detect the currency from the $price_as_string variable, do the logic
// and return it as a floatreturn floatval(1234);
}Kim
- This reply was modified 5 years, 10 months ago by Gaylord Focker.
Would it be possible to use some multi-currency plugin instead? Like if you set the fee as rubles, and then the plugin changes it to a different currency at the checkout based on customer’s location?
Kim
Hi,
Please update the plugin, I added few more filters for the fee variables. Filters and how to use them, you can check here: https://web-data.online/docs/woocommerce-custom-shipping-methods/#developers
The filter for fixed fee is: woo_custom_shipping_dbf_fixed_price
Your other shipping method plugins needs to support shipping zones, to be able to see them at the shipping methods list on your selected zone. If your plugins does not support the shipping zones, then you should be able to view them at the main shipping settings page at: WooCommerce – Settings – Shipping. Otherwise you should contact the plugin author.
Kim
- This reply was modified 5 years, 10 months ago by Gaylord Focker.
Hi,
You are probably going to need to create a custom logic with filter hook.
See plugin docs at web-data.online for more info.
Kim
Forum: Plugins
In reply to: [WebData Custom Shipping Methods for WooCommerce] plugin does not workHi,
It should be possible to create a logic like that with 3 different shipping methods.
One with fixed fee of zero and limit to 5 miles. Second one with the distance limited from 5 miles to 30 and the last one from 30 to 9999 miles for example. You can also set shipping class based fee for the last shipping method.
Kim
Hi,
You can set maximum limits for the shipping costs. E.g. 0.5kg and 1kg. If your cart weight is above 0.5kg, then the next threshold will be used.
Kim
Hi,
You should not restrict the API key and also make sure you have enabled all the required API’s. Also check your error_log file for possible errors.
Kim
Hi,
Yes, you can set fees and also limit the visibility of the shipping methods based on zip codes.
Kim
- This reply was modified 5 years, 10 months ago by Gaylord Focker.
Forum: Plugins
In reply to: [WebData Custom Shipping Methods for WooCommerce] will it do the followingHi,
You can set multiple shipping methods on the same zone to charge different fees based on different distance ranges. E.g. 0-5 miles one shipping method, 5-10 miles another shipping method and so on..
For category based fees you need some other plugin.
Kim
Forum: Plugins
In reply to: [WebData Distance Based Fee for WooCommerce] About useHi,
Since you are using custom code, this goes beyond the scope of this plugin’s support, but you should check all fields returns valid values and Google’s API is able to find them. Just a guess, but it may be you have stored those settings on your admin user but not for the other user.
Kim
Hi,
It’s a third party plugin as you mentioned, so it’s quite hard to give support for situations like this. Try if you can see any errors on error_log file or if the plugin author has any ideas to fix your issue. If you need some fix for the plugin code, please let me know.
Kim
Forum: Plugins
In reply to: [WebData Custom Shipping Methods for WooCommerce] On shipping custom gstHi,
Since it’s a 3rd party plugin, it’s hard to say whether it is compatible with this plugin or not, but give it a try or use this plugin instead: https://ww.wp.xz.cn/plugins/woo-distance-based-fee/
Kim
Hi,
It depends, but maybe this plugin would be more suitable for you: https://ww.wp.xz.cn/plugins/webdata-custom-shipping-methods-for-woocommerce/
Kim
Forum: Plugins
In reply to: [WebData Distance Based Fee for WooCommerce] Two distances – two flat ratesHi,
Use this plugin instead: https://ww.wp.xz.cn/plugins/webdata-custom-shipping-methods-for-woocommerce/
Kim