Support » Plugin: WebData Custom Shipping Methods for WooCommerce » Distance Based Shipping – Special Condition

  • Resolved Mohit Sareen

    (@mohitsareen)


    I am looking to setup a shipping condition where it charges based on following conditions.

    – Delivery for $5 up to 5 miles of zip code 76108.

    – $10 for outside of that radius upto 15 miles

    I am not able to set it up.

    Can anyone help?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Mohit Sareen

    (@mohitsareen)

    Ok

    I found the help on one of the previous threads
    https://wordpress.org/support/topic/distance-based-rules/

    However, I still have another question… Let me first explain my setup

    I am charging

    -fixed fee of $5 for upto 5 Miles
    – from 5 miles to 15 miles – fixed fee of $10
    – Do not display shipping method if it is beyond 15 miles

    Please see the image of a test location
    https://kolemanbbq.developmentserver.info/wp-content/uploads/2020/08/Koleman.png

    You can see that maps calculates 3 possible distances one of them is within 15 miles and other 2 are outside 15 miles. In this scenario, The plugin is not showing $10 shipping method. It seems it is picking up indicator from one of the other 2 locations.

    Cold you tell me why? is there something wrong that I am doing? Shouldn’t it pick just the shortest distance between the 2 points?

    P.S. this is also happening when a location that is within 5 miles has 2 different route options (1 less than 5 miles and the other longer than 5 miles). The shipping options shows both the shipping methods.

    Any help will be appreciated.

    HI,

    Any thoughts on my question?

    Plugin Author webdata

    (@webdata)

    Hi,

    Plugin itself does not support directly your requirements, but using the filters it should be possible: https://web-data.online/docs/woocommerce-custom-shipping-methods/#developers

    woo_custom_shipping_dbf_calculated_fee would be the correct filter to use in this case.

    Kim

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.