Alternatively to Google, can you please add option to use Mapbox Matrix API too…google too expensive for some people.
]]>Good day
Please do advise if there is a way to have this plugin base the shipping rate from multiple shop addresses, i.e. the customer is in London and your main address is in Leeds, though you can ship from an address in London, this would create a cheaper shipping rate for the customer.
]]>Hi there, I’ve setup shipping methods for my client, which includes free shipping as well as distance based shipping (depending on product).
I’ve used the “Conditional Shipping for WooCommerce” plugin to create rules for shipping methods offered but, when your Distance Based Shipping shipping method is enabled, it ignores these rules and we end up with “There are no shipping options available. Please ensure that your address has been entered correctly, or contact us if you need any help.” displayed, rather than Free Shipping.
Whats the best way to allow free shipping on certain items when your plugin is active?
Any thoughts or ideas most appreciated.
Kind regards
James
Hey Guys! Thanks for the work.
I have some issues on my site, and am trying to reduce the PHP Warnings like :
[24-Nov-2023 15:46:25 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘) ORDER BY price_per_distance DESC LIMIT 1’ at line 10 for query SELECT * FROM wp7f_drs_product_rules as t WHERE (t.min_distance < 0 OR t.min_distance = 0) AND (t.max_distance > 0 OR t.max_distance = 0) AND (t.min_order_amount < 4629 OR t.min_order_amount = 4629) AND (t.max_order_amount > 4629 OR t.max_order_amount = 4629) AND (t.min_order_qty < 1 OR t.min_order_qty = 1) AND (t.max_order_qty > 1 OR t.max_order_qty = 1) AND (t.min_order_weight < 0 OR t.min_order_weight = 0) AND (t.max_order_weight > 0 OR t.max_order_weight = 0) AND () ORDER BY price_per_distance DESC LIMIT 1 made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), do_action(‘template_redirect’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::do_wc_ajax, do_action(‘wc_ajax_update_order_review’), WP_Hook->do_action, WP_Hook->apply_filters, WC_AJAX::update_order_review, do_action(‘woocommerce_checkout_update_order_review’), WP_Hook->do_action, WP_Hook->apply_filters, Coderockz_Woo_Delivery_Public->coderockz_woo_delivery_refresh_shipping_methods, WC_Cart->calculate_shipping, WC_Shipping->calculate_shipping, WC_Shipping->calculate_shipping_for_package, WC_Shipping_Method->get_rates_for_package, Distance_Rate_Shipping_Method->calculate_shipping, Distance_Rate_Shipping_Method->calculate_cost, Distance_Rate_Shipping_Method->get_matching_product_rules
The null And(), AND () ORDER BY seems to be the problem.
Can you please fix that, so we don’t have to keep editing it? And/or let us know the fix?
]]>Hello everybody,
how do you program the Price Per Distance line?
Is there a particular way?
Can anybody provide an example?
I implemented a plugin like it’s shown in the tutorial and screenshots but it’s not working.
]]>I really liked your plugin and started using it. When these settings are consistent in the products I add to the cart after making the settings in the plugin, other shipping methods are hidden. I want to close this. So I want it not to be hidden. Can you help me?
]]>I added the API Key and set up a shipping method with the following info:
Min Distance: 0
Max Distance: 50 (I’m assuming this is the max distance it’ll calculate…???)
Min Order Amount: 50.00 (I’m assuming this is for setting the base rate…??)
Price Per Distance: 5.00 (I’m assuming this charges $5/mile…??)
Sorry, but I’m not really clear on what these settings are for. Either way, it doesn’t yield any shipping cost on checkout. It simply displays the Shipping Zone Name, and the City and Zip Code.
]]>Do the distance min/max fields accept decimals, or does it just round up/down to the nearest mile for the shipping cost?
]]>