Assigning Addresses to Zones
Permalink Browser Info Environment
Some more details on facilities for assigning customer shipping addresses to zones.
Zone Based Shipping matches customer orders to zones declared by the developer using the C5 eCommerce shipping address for country, state/province/county, town/city, zip code, and the actual text of the address.
Matches can be ‘equal to’ ‘begins with’ ‘ends with’ ‘contains’ ‘regular expression’ or ‘default’ (which will always match , so is intended as a catch all at the end).
Some examples (by no means exhaustive)
A UK site owner has Zone Based Shipping configured to allocate particular UK postal codes to a premium shipping cost zone, then split the EU into 6 different regions, then group other countries into several other regions, with some countries being in regions all by themselves because he has included the cost of import licences in the shipping.
A US site owner has split the USA into zones based on the first 3 digits of zip codes
Zone Based Shipping matches customer orders to zones declared by the developer using the C5 eCommerce shipping address for country, state/province/county, town/city, zip code, and the actual text of the address.
Matches can be ‘equal to’ ‘begins with’ ‘ends with’ ‘contains’ ‘regular expression’ or ‘default’ (which will always match , so is intended as a catch all at the end).
Some examples (by no means exhaustive)
A UK site owner has Zone Based Shipping configured to allocate particular UK postal codes to a premium shipping cost zone, then split the EU into 6 different regions, then group other countries into several other regions, with some countries being in regions all by themselves because he has included the cost of import licences in the shipping.
A US site owner has split the USA into zones based on the first 3 digits of zip codes
Type: | Discussion |
---|---|
Status: | Archived |
Another example
The ZBS address matching is sufficiently flexible that you can specify partial matches with addresses.
In the UK for example
Country equals UK => UKNationalZone
with PostCode begins with BS|BA => LocalZone
which (if you are familiar with UK post codes) means the Bristol or Bath area.
In the US, you can specify a regex to match groups of zip codes.
The ZBS address matching is sufficiently flexible that you can specify partial matches with addresses.
In the UK for example
Country equals UK => UKNationalZone
with PostCode begins with BS|BA => LocalZone
which (if you are familiar with UK post codes) means the Bristol or Bath area.
In the US, you can specify a regex to match groups of zip codes.
So, rules that match within a country could (in shorthand with some logic to help explain)
- Country = United Kingdom => ZoneUK
- Postal Code begins with BS => ZoneLocaltoMe
- Postal Code begins with SW => ZoneFurtherFromMe
You can then continue the list with rules for more countries:
- Country United States => ZoneUSA
- City = NewYork|Chicago => ZoneWithGangsters
- Country default any => ZoneAnywhereElse
Its usually a good idea to have an 'Anywhere Else' zone at the end of the table.