Destination zones

What are Destination zones?

Destination zones are used to create tax and shipping rules that are limited only to a special geographic region. Each zone is a subset of countries, states and zip codes which define a specific region to which some rules apply.

For example, if you want to create tax only for the state of California, you should create the "California" zone with only this state.

If you have two different shipping rates for your country and all other countries — you need two zones, one with only your country and the other one with all other countries.

If you want to offer free shipping to all customers near your store, you should create a new zone with your country, state and zip code.

How does StoreFront determine the customer's zone?

  • First StoreFront checks the country field. If a zone country list isn't empty, the customer`s country must be in it.
  • Then StoreFront checks the states field. If it isn't empty, the customer`s state must be in it.
  • If the zone zip code field isn't empty, the customer`s zip code must be in it.

If all of these conditions are true, the customer gets into this zone.

The first matching zone applies. The last zone is always the built-in "World" zone. The customer will be added to it if no other zones apply.

How to use Zip/Postal Codes in destination zones

Sometimes you may need to define a complex zone, which isn't just a set of states and countries. For example you want to provide free delivery for customers from your city or apply tax for customers from a particular county. A zone with the entire state will not work here because customers from ALL cities and counties of this state will match the zone. In this case we need to use zip codes to create a proper zone.

If a zone has some zip codes assigned, only customers which have the zip code from the list, will match this zone. Each zone can have one or more zip codes assigned. If you have many codes, enter one code per line.

You can also use the "*" wildcard character to create your zip code rules.

This character will match any number of possible characters. For example "100*" will match "100100", "100SOMETEXT", "1002", i.e. any string which starts from 100. "10*20" will match any string which starts from "10" and ends with "20", for example "103020".

This wildcard character is useful when you need to create a zone for a subset of the similar zip codes (e.g. all zipcodes from the same county).

Examples

1. If we want to create a zone which will match customers who are from New York and have the '10001' zip code only, then we need to create a zone with two elements:

- New York state

- and this zip code entered

10001

2. If we want to create a zone which will match customers who are from New York and have the '10001', '10002' and '10003' zip codes only, then we need to create a zone with:

- New York state

- and these codes in the "Zip/Postal Codes" field (one code per line!)

10001

10002

10003

3. If we want to create a zone which will match customers who are from New York and whose zip code starts from '100', i.e. 10001,10002, 10003 ... 10098, 10099, then we need to create a zone with:

- New York state

- and this code in the "Zip/Postal Codes" field

100*

Note: if you just create 100 lines with 100 zip codes, it will work too. However it is much easier to use a wild card here.

4. If we want to create a zone which will match customers who are from New York and whose zip code starts from '100' (i.e. 10001,10002, 10003 ... 10098, 10099) OR is equal to 123123, then we need to create a zone with:

- New York state

- and these codes in the "Zip/Postal Codes" field

100*

123123