With our delivery validation feature, you can validate if the customer is eligible for delivery.
Maximum driving distance method checks the address that your customers entered in the widget. That address will need to be within the driving distance you entered in your location settings.
In order to use this feature, you will need a Google Maps API key. Please follow our Google Maps API key article to create one.
To learn more about other delivery validation methods, take a look at our Delivery validation article.
How does maximum driving distance work?
Enabling the maximum driving distance method will add a field to the Local delivery section of our widget.
You will need to enter your driving distance in the location settings.
Your customers will need to enter their address to check if delivery is available.
They will start typing their address and select it from the dropdown menu.
If the address is within your driving distance, they will be able to proceed.
The address will automatically populate in the next step of the checkout.
If the address is not within your driving distance, they will get an error and not be able to proceed further.
The distance measured is the actual driving distance from your store to the customer's address.
Enabling maximum driving distance method
Open the Apps section in your Shopify admin and click Zapiet - Pickup + Delivery.
Within Zapiet - Pickup + Delivery, click the Settings tab.
Click Local delivery.
Scroll down to the Distance validation section and locate the Validation field.
Select Customer within max driving distance.
Enter your Google Maps API Key. If you do not have one, please follow the steps in our Creating a Google Maps API Key article.
Check the box Enable address autocompletion.
Scroll to the Checkout section and make sure the Prepopulate shipping address fields setting is enabled.
Adding maximum driving distance to the location
Within Zapiet - Pickup + Delivery, click the Locations tab.
Click the name of the location, e.g. Almonds and Cream.
Under the Local delivery section, click Edit settings.
Under the Distance validation field, enter your maximum driving distance.
Changing the wording in the widget
Within the Zapiet - Pickup + Delivery app, click the Settings tab.
Click Text and design.
Find the Local delivery > Delivery widget settings.
Change the wording in every field containing postal code/zip code into address.
This is how your widget would look when you change the wording.
Delivery validator is not compatible when using max driving distance validation method. We are working on adding support for address autocompletion.
You can use address autocompletion if your store delivers to only one country—we don't support autocompletion for multiple countries.
Check if you've selected the correct validation method.
Check if you've added the correct max driving distance within a location.
Check Google Maps API article to make sure you have:
Enabled all the APIs (Maps, Geocoding, Places, Directions, Distance Matrix)
Removed the restrictions on your Google Maps API key.