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

Type: Discussion
Status: Archived
JohntheFish
View Replies:
JohntheFish replied on at Permalink Reply
JohntheFish
Any address items other than country are only matched if they follow a country that matches, so even if you are just shipping to one country, you still need to match that country (it can be a trivial match if you have only enabled ZBS for one country).

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.
JohntheFish replied on at Permalink Reply
JohntheFish
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.

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.