Gaylord Focker
Forum Replies Created
-
Forum: Plugins
In reply to: [WebData Custom Shipping Methods for WooCommerce] Expected behavior?Hi,
I can add a feature to the next plugin update, which allows you to control more the fixed fee behavior.
Kim
Hi,
Thanks for the report! I will investigate this further and release then a fix.
Kim
Forum: Plugins
In reply to: [WebData Custom Shipping Methods for WooCommerce] Distance * WeightHi,
Not directly possible, but you can do it with a hook: https://web-data.online/docs/woocommerce-custom-shipping-methods/#developers
Kim
Forum: Plugins
In reply to: [WebData Distance Based Fee for WooCommerce] Min distance calculationThere 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/#developersKim
Forum: Plugins
In reply to: [WebData Distance Based Fee for WooCommerce] Min distance calculationOk, 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
Great, happy to help! 🙂
Kim
Forum: Plugins
In reply to: [WebData Distance Based Fee for WooCommerce] Min distance calculationHi,
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
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
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
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, 1 month ago by Gaylord Focker.
Forum: Plugins
In reply to: [WebData Custom Shipping Methods for WooCommerce] Customers location dataRegistering 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
In reply to: [WebData Custom Shipping Methods for WooCommerce] Customers location dataHi,
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
Here is the API response:
distance: 10.4 mi
value: 16787I 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
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
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