Shipping by distance

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #94584
    Daniel Claxton
    Participant

    Hi, I’ve just bought the shipping distance plugin. I’m really sorry but I have no idea how to implement this on the website. I just want these basic rules setting up: 0-25 MILES FREE, 25-50 MILES £30, 50-75 MILES £50, 75-100 MILES £75 100+ MILES £100

    Can you please instruct me how? Your help would be greatly appreciated.

    Thank you,

    Dan

    #94585
    Tom Anbinder
    Moderator
    Plugin Support

    Hi Dan,

    Here the shortcode you need to put in your custom shipping’s “Cost” field:

    [costs_table prop="distance" table="0-0|40.2336-30|80.4672-50|120.701-75|160.934-100" key="AIzaSyC4OkGgzRYLc80yEYzuhU7USYFzwXzzzzz" default="100" units="km"]

    The most important thing – you need to replace key (i.e. AIzaSyC4OkGgzRYLc80yEYzuhU7USYFzwXzzzzz) with your own key, you need to get from https://developers.google.com/maps/documentation/distance-matrix/start#get-a-key – it’s free.

    Also, as you can see, I’ve replaced miles with distances in kilometers (25 miles = 40.2336 km, 50 miles = 80.4672 km, 75 miles = 120.701 km, 100 miles = 160.934 km). If that’s an issue – I can add miles to our plugin today. This won’t be hard to do.

    #94586
    Tom Anbinder
    Moderator
    Plugin Support

    Hi again, Dan,

    Just wanted to let you know that we’ve released new plugin v1.4.0 today, where I’ve added miles (mi) to the [costs_table] shortcode, so now you can set:

    [costs_table prop="distance" table="0-0|25-30|50-50|75-75|100-100" key="AIzaSyC4OkGgzRYLc80yEYzuhU7USYFzwXzzzzz" default_distance="100" units="mi"]

    Also, I’ve noticed that you may need to enable “Trigger checkout update” option in “WooCommerce > Settings > Custom Shipping Methods”, so that shipping cost is updated immediately if a customer changes his address on the checkout page.

    And last note – if you want to show shipping cost only after customer has entered his address, you may want to enable “Hide shipping costs until an address is entered” option in “WooCommerce > Settings > Shipping > Shipping options”.

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