Help CenterContact support
All Checkora: Hide Shipping Method articles

How do I block PO boxes, Packstations or addresses without a number?

Updated

On this page
  1. What the app recognises
  2. Hide a courier for lockers and PO boxes
  3. Block checkout for a missing house number
  4. Check it in the simulator
  5. Limits

Many couriers cannot deliver to a PO box or a parcel locker, and a street without a house number is a common typo. An Address line condition reads address lines 1 and 2 at checkout and lets a rule hide the options that cannot deliver there, or stop checkout with a message.

What the app recognises

Address type Matches when the address lines contain
PO box PO Box, P.O. Box, Post Office Box, GPO Box, Locked Bag, Postfach, Postbus or BP, followed by a number
Parcel locker or post office pickup Packstation, Postfiliale, Parcel Locker or Parcel Collect, followed by a number
No house number no digit at all in either address line

These are the formats the postal services ask buyers to use: USPS Publication 28 and Canada Post (PO Box), Australia Post (GPO Box, Locked Bag, Parcel Locker, Parcel Collect), Deutsche Post and DHL (Postfach, Packstation, Postfiliale), PostNL (Postbus) and La Poste (BP). Letter case and dots are ignored. A buyer who writes the address in an unusual way can still slip through.

Hide a courier for lockers and PO boxes

  1. Open Rules and click Add rule.
  2. Under Conditions, click Add condition and pick Address line.
  3. Under Match, choose is one of, and tick PO box and Parcel locker or post office pickup under Address types.
  4. Under Action, choose Hide delivery options and set Which delivery options, for example Title contains Express. Save the rule.
  5. On the Rules page, under Checkout functions, click Turn on next to Time and address rules.

To offer an option only at lockers, choose is not one of instead.

Block checkout for a missing house number

  1. Create a rule with a Country condition for the countries where every address has a house number (for example DE, AT, NL), and an Address line condition with No house number ticked.
  2. Under Action, choose Block checkout, write the message in your buyers’ languages and under Show the message on choose Delivery address. See Block checkout and buyer messages.

Do not use No house number for every country: in the UK and Ireland, for example, many addresses have a house name instead of a number.

Check it in the simulator

The Simulator has Address line 1 and Address line 2 fields. Try Packstation 123, PO Box 77 and a normal street address and check which options the buyer sees.

Limits

These limits come from Shopify Functions, which can only hide, rename or reorder delivery options, never add them:

  • Address line conditions work with Hide delivery options and Block checkout only, not with rename or move.
  • A hide rule with an address line condition cannot also check the customer (customer tag, login or B2B company). Split it into two rules.
  • The condition counts only once the buyer has entered a street. Before that, both is one of and is not one of are false, so nothing is hidden or blocked by mistake.

Built and supported by StoreFleet, Shopify app developers since 2021.