This option can be used regardless of your location. It's designed for countries where postcodes have letters followed by single and double digits (e.g. in the UK, SW2 and SW20), in order to differentiate between them.
To learn more about other delivery validation methods, take a look at our Delivery validation article.
Compare delivery validation methods
If you're not sure if this is the right method for your use case, compare the validation methods we offer.
| ||||
Recommended use | For delivering to a relatively small area | For delivering to a wide area | For more complex delivery rules | For countries that don't use postal codes |
Example zip codes | 12345, SW1A 1AA | 123, SW1A | 123*, SW2_, SW1A_*** | LONDON, MILTONKEYN |
Eligible zip codes | 12345, SW1A 1AA | 12345, 1230, SW1A 1AA | 1234, SW2 1BS, SW1A 6TH | London, london, Milton Keynes, miltonkeynes |
Non-eligible postcodes | Any postcode that is not added to Zapiet - Pickup + Delivery | Any postcode that does not begin with 123 or SW1A | Any postcode that does not begin with 123, SW2 SW1A, has less or more digits than asterisks and is missing a space | Any city name that doesn't begin with LONDON or MILTONKEYN |
How does UK postal code support work?
When you enable the partial postal code matching and UK postal code support, we will add a field to the Local delivery section of our widget.
You will need to enter eligible postal codes in the location settings.
Your customers will need to enter their postal code in our widget to check if they're eligible for delivery.
Postcode formatting
You can use an underscore to denote a space, and an asterisk to define boundaries.
SW2_ will match SW2 1AA, but not SW20 1AA.
SW2_*** will match SW2 1AA, but not SW2 1AAB (non-existent postcode).
When you use an underscore, your customers will need to enter a space between the first part of their postcode and the second.
For example, if you add SW2_*** in the settings, check which example postal codes will be eligible for delivery:
Zip code | Eligible for delivery |
SW2 1AA | YES |
SW21AA | NO |
SW20 1AA | NO |
Enable UK postal code support
Proceed with the steps, if you're using Zapiet - Pickup + Delivery widget version 1 or 2. Take a look at our Which version of the widget am I using? article.
If you're on a legacy version, please reach out to us at [email protected], and we would be happy to install the update for you!
In Zapiet - Pickup + Delivery, click Settings.
Click Local delivery.
In the Distance validation section, select Partial postal code match.
Tick Enable UK postal code support.
Click Save.
Your delivery validation settings are set, now you need to add eligible postcodes to every location that offers delivery.
Add postal codes to a location
In this example, we will enable delivery for SW2 postal codes, but not SW20.
In Zapiet - Pickup + Delivery, click Locations.
Click the name of the location you want to edit.
In the Local delivery section, click Edit settings.
In the Distance validation field, enter your partial eligible postal codes. Separate them with a comma.
Please note that we don't support overlapping postal codes—each of your locations needs to have a unique set of postal codes.
Click Save.
Repeat for all the locations that offer local delivery, but make sure that every location has a unique set of postcodes.
In this particular case you do not need to use the asterisks, but you can if you want more control over which entries will be valid.
Change the wording in the widget
You can change the wording in the widget to show a sample postal code, if needed.
In Zapiet - Pickup + Delivery, click Settings, then click Text and Design.
In Text and design section, click Show next to Delivery widget.
Edit the text of Search field placeholder to include a sample postal code.
Click Save.
Changes will be immediately applied to the widget.