Delivery charges based on distance for Local delivery

Kurvi Kansagra

Last Update 3 bulan yang lalu

Requirement

Limitations

  • We do not recommend this approach for calculating delivery charges. Instead, you can use zipcode-based delivery charges, which provide a more accurate and reliable solution.​
  • Why we do not recommended this option: On the checkout page, customers can change the delivery address due to a Shopify limitation, which may cause a mismatch in delivery charges.

    For example, a customer may validate a 5 KM postcode in the widget and proceed to checkout, but then change the postcode to one within a 10 KM range. In such cases, the delivery charges may still reflect the 5 KM rate.


    Setup distance base charges

    Inside GAF - Store Pickup & Delivery APP click Settings -> Local Delivery

    Please scroll down to the Distance validation section. Select the "Delivery max driving distance" option. Also, Add the required Google Map API Key

    Select whether the driving route should avoid highways, tolls, or ferries.

    Select the route options:

    • The fastest route will assess traffic conditions and select the fastest route at the time of entering the address.
    • The shortest route will always select the shortest possible route.
    Once you configure it, Click Save!

    The distance is the actual driving distance from your store location to the customer's address.

     Add Max driving distance in locations 

    Go to Locations, Add or Edit existing location
    Inside Local Delivery section. you can see the Max Distance field, enter a distance in KM
    Once you configure it, Click Save!
    Set Max distance in all of the locations that offer local delivery.
    For example
    • Location ABC has 5 KM ​distance
    • Location XYZ has 10 KM distance


    If you need the same location to support multiple distance ranges (e.g., 5 KM and 10 KM), you can duplicate the location and configure each:

    • One with a 5 KM limit
    • Another with a 10 KM limit

     Setup distance rates for Local Delivery

    Go to Shipping rates

    Click on the Add Rate button in the Local Delivery section

    Add Rate Name (Customers will see this at checkout)

    Select Location to show rate for that location
    In the Rate Amount field, enter the delivery charge you would like to charge for that location distance. (Enter 0 for free).
    Click Save.
     
     

    Still need help? Message Us