• Home
  • Matilda uses the 'Wildcard' rule to target defined areas with alpha-numeric postcodes

Matilda uses the 'Wildcard' rule to target defined areas with alpha-numeric postcodes

Matilda uses the 'Wildcard' rule to target defined areas with alpha-numeric postcodes. She's based in London, UK and her rates for delivery to Northern Ireland are different to the rest of the United Kingdom. Since postcodes in the UK are alpha-numeric she makes use of the 'Wildcard' rule. We'll step you through the process.


Matilda's Children's Store delivery areas & rates:

GREAT BRITAIN [All postcodes on the Island of Great Britain]: £5 shipping
NORTHERN IRELAND [All postcodes in Northern Ireland]: £10 shipping

Matilda has already:

Create a Range using a 'Wildcard' rule:

Matilda needs to define the exact areas she wishes to provide delivery to within the zone 'UK'. She can do this by creating Ranges and specifying the postcodes that make up each range.

  • Within a zone (eg 'UK') click the option to Add a postcode range.

  • Give the range a title. Matilda uses 'Northern Ireland' and keeps all of the default settings.

  • Scroll down to the 'Rules' section. Define a range by entering postcodes in the 'Rule matches' and 'Rule exclusions' fields.

All postcodes in Northern Ireland start with a BT so Matilda specifies that all postcodes starting with BT are considered a match for this range. She enters BT* in the 'Rule matches' field.

BT*

Matilda is making use of the 'wildcard' rule, designated by the asterisk (*). A wildcard rule allows for the creation of rules that match any character from a given position within a postcode. In this case every postcode with BT for the first 2 letters is included, irrespective of the following characters.

  • Click Save.

Create a 'Catchall' Range.

Matilda would also add a second range which acts as a catch all for the rest of the UK.

  • Navigate back to the zone (eg 'UK') and click Add a postcode range.

  • Give the Range a name (eg 'UK'), and set the 'Catchall' status to Yes. Note: the Range rules fields disappear, as you don't need to enter any postcodes.

  • Click Save.

Add rates:

Once Matilda has created her ranges, she's ready to add rates.

  • At the bottom of any range screen click Add a rate for this range.

  • Fill in the rate details.

  • Click Save.

Now, when Matilda's customers proceed to checkout in her Shopify store, if their postcode begins with a BT they will receive the shipping rates she has set for her range 'Northern Ireland'.

You can use this setup for your country too! Even though this example is based in the UK, you can setup your rates in a similar way if you need to define areas with alpha numeric postcodes, no matter which country you are shipping from.


Related articles: