What you'll build
A "Same-Day Delivery" shipping option that is only visible to customers with a Helsinki postcode (00100–00990). Customers outside that range will not see it at checkout. No manual list of postcodes is needed.
Before you start
- You have a "Same-Day Delivery" shipping option connected to a carrier that covers the Helsinki area.
- Helsinki postcodes always start with
00. The range runs from 00100 to 00990. - Shipit preserves leading zeros in postcodes exactly as entered by the customer.
Step 1: Set the option to hidden by default
Open Same-Day Delivery and set Default visibility to Hidden.
Same-day delivery is an exception, not the rule. Starting from hidden and using a show rule means the option is off unless the postcode actively qualifies.
Step 2: Understand Helsinki postcode structure
Helsinki postcodes all start with 00 and have a third digit between 1 and 9. The simplest matching approach uses one pattern per hundreds group:
| Pattern | Matches |
|---|---|
001* | 00100–00199 |
002* | 00200–00299 |
003* | 00300–00399 |
004* | 00400–00499 |
005* | 00500–00599 |
006* | 00600–00699 |
007* | 00700–00799 |
008* | 00800–00899 |
009* | 00900–00990 |
Tip: The
*wildcard means "any characters from this point forward." So001*matches00100,00150,00199, and any other code that starts with001.
Step 3: Add show rules for each postcode prefix
Add a new rule with nine conditions — one per prefix — and set Conditions match to Any.
| Rule field | Value |
|---|---|
| Rule name | Show for Helsinki postcodes |
| Condition 1 | destination_postcode matches pattern 001* |
| Condition 2 | destination_postcode matches pattern 002* |
| … | (repeat for 003* through 009*) |
| Action | enable_method |
| Conditions match | Any |
Warning: Do not set Conditions match to All here. A postcode cannot simultaneously start with
001AND002. Use Any so the rule fires when the postcode matches at least one pattern.
Step 4: Alternative — using a postcode list
If you need fine-grained control, create a Postcode list under Settings → Postcode lists, add every qualifying postcode, then reference it in your rule:
| Rule field | Value |
|---|---|
| Condition | destination_postcode_list_id is in your Helsinki list |
| Action | enable_method |
Postcode lists are easier to update without touching the rule itself.
How it works
When a customer enters their delivery address, Shipit checks the postcode against your pattern conditions. If the postcode starts with any of the nine Helsinki prefixes, the Any condition is satisfied, the enable_method rule fires, and Same-Day Delivery becomes visible. For any other postcode, no pattern matches, no rule fires, and the option stays hidden.
Testing it
- Open the Checkout tester and enter postcode
00100. Confirm Same-Day Delivery appears. - Test
00550. Confirm it appears. - Test
01300(Vantaa). Confirm Same-Day Delivery does not appear. - Test
20100(Turku). Confirm it does not appear.
