How to block PO Box shipping in Shopify and hide methods by address

Updated · SMART Shipping Rates & Rules (E-TRADE PARTNER)

You can hide Shopify delivery methods when the shipping address looks like a PO Box, Locked Bag, or Private Bag by matching address-line text. SMART Shipping Rates & Rules does this in Delivery customizations with Shipping address line 1 and Shipping address line 2. Matching is case-insensitive text on what the customer typed. It is not a postal-address validation service. These hide rules do not require Carrier Service. Shopify supports PO Box hiding for rates from carrier services and shipping apps; with Shopify's built-in rates the address may not reach the rule, so test in real checkout.

SMART Shipping Rates does this with zones, calculated rates, and delivery customizations.

Try it free
On this page
  1. When merchants restrict shipping by address
  2. What Shopify can and cannot do natively
  3. Which SMART module to use
  4. Address operators
  5. Setup steps in SMART Shipping Rates & Rules
  6. Worked example: hide parcel shipping for PO Box, keep pickup
  7. Spellings worth covering
  8. Tips before you publish
  9. What this rule cannot do
  10. Frequently asked questions

Many parcel carriers will not deliver to a PO Box. Couriers need a street they can reach. If Standard shipping still appears for PO Box 123, the order either fails later or your team pays to redirect it. The checkout should hide methods you cannot fulfill to that address style.

SMART matches the typed address lines. It does not look up whether the address is a real, deliverable street. A customer can still type a street that is not serviceable, or misspell PO Box so the rule misses it. Treat this as checkout control, not address verification.

When merchants restrict shipping by address

  • Parcel or freight methods cannot deliver to a PO Box, GPO Box, Locked Bag, or Private Bag.
  • Store pickup should remain (or become the only option) when the address is a box number.
  • Local van delivery should disappear when address line 1 is a box, not a street.
  • A method should only show when the address contains a required site name, such as a named campus or warehouse.

What Shopify can and cannot do natively

Shopify collects address line 1, address line 2, city, and postal code. Native shipping zones use country, region, and sometimes postal codes. They do not hide a method because line 1 contains PO Box. You need a delivery customization that reads the address text.

NeedNative ShopifySMART
Hide a method when address contains PO BoxNot availableDelivery customizations, Shipping address line 1 / line 2
Hide a method for selected postcodesLimited zone setupDelivery customizations or Shipping rates zones
Create a new price for a postcode groupBasic zonesShipping rates (Carrier Service required)
Validate that a PO Box is a real postal boxNot thisNot this. SMART matches typed text only

Shopify limit: which rates PO Box rules can see

Shopify's delivery customization docs say hiding options for PO Box addresses is only supported for options from carrier services or third-party shipping apps. With Shopify's own built-in rates, the address data a rule needs might not be available (Shopify docs). If your parcel methods are native Shopify rates, test real PO Box checkouts before you rely on the rule.

Which SMART module to use

Shipping rates zones can match country, city, and postal code. They do not match customer street lines. Origin address lines are the warehouse address, not the customer. For PO Box and other street-text rules, use Delivery customizations. If the app's own rates should be dropped or repriced for a PO Box instead of hidden, a shipping script (Pro) can read address line 1 and line 2.

FieldModuleMatches
Shipping address line 1Delivery customizationsCustomer street or box line, as typed
Shipping address line 2Delivery customizationsUnit, box, or extra line, as typed
Postal code / cityDelivery customizations or Shipping ratesDestination geography
Origin address line 1 or 2Shipping ratesFulfillment location, not the customer

Address operators

Add Shipping address line 1 and Shipping address line 2 with Add condition. Each takes a comma list, ignores case and surrounding spaces, and contains matches when the line contains any item in the list. Rules with address-line conditions can't also use Collection, SKU, or B2B conditions.

OperatorUI labelUse for
CONTAINScontainsPO Box, P.O. Box, POBOX, Locked Bag, Private Bag
NOT_CONTAINSdoesn't containRequire a street-style address to keep a method
STARTSstarts withAddresses that begin with a known prefix
ISisAn exact line you already know

Setup steps in SMART Shipping Rates & Rules

  1. Write down which existing checkout methods cannot go to a box address (for example Standard shipping and Express). Leave pickup visible if that is the fallback.
  2. Open Delivery customizations, click Create delivery customization, name it, and pick When set conditions are met.
  3. Add Shipping address line 1 contains PO Box, P.O. Box, P.O.Box, POBOX, Locked Bag, Private Bag, GPO Box. Don't end the list with a comma: an empty item matches every address.
  4. Click Add group (OR) and add the same list on Shipping address line 2, for customers who put the box number on line 2.
  5. Click Add action, choose Hide specific delivery methods, and type those parcel method names, comma-separated with no space after each comma (Standard,Express). Or use Hide delivery methods of type Shipping if every shipping-type method should disappear.
  6. Set Status to Active and save, then test in real Shopify checkout. Checkout simulator does not apply delivery customizations.
  7. Confirm at least one method remains for a PO Box cart (usually pickup), unless you intend to show no methods.

Common mistake: treating this as address validation

contains PO Box only matches text the customer typed. It does not confirm the box exists, and it does not catch every spelling. A customer can type Box 12, Postal Box, or a street that is still undeliverable. Keep pickup or another fallback visible, and do not claim SMART validates addresses.

Worked example: hide parcel shipping for PO Box, keep pickup

A Melbourne store offers Standard shipping, Express, and Store pickup. Couriers will not deliver to a PO Box. Pickup should stay.

  1. Create a hide rule for Standard shipping and Express.
  2. Add one group with Shipping address line 1 contains PO Box, P.O. Box, POBOX, Locked Bag, Private Bag, and an OR group with the same list on line 2.
  3. Leave Store pickup untouched so a PO Box customer still has a method.
  4. Optionally rename Store pickup to Store pickup (required for PO Box addresses) with a second customization if you want that wording only for box addresses.
  5. Checkout with PO Box 88, Collins Street and confirm parcel methods disappear. Checkout with 88 Collins Street and confirm they return.

Spellings worth covering

Customers do not type one format. Put the patterns below in one comma list, then add any pattern you see in real orders. Matching is case-insensitive, so po box and PO BOX are the same test.

Pattern to put in containsCatchesWatch-out
PO BoxPO Box 123, PO BOX 123Misses P.O. Box unless you list it too
P.O. BoxP.O. Box 123, P.O. Box123The dots matter; list it separately
POBOXPOBOX123No spaces
Locked BagLocked Bag 1Common in AU and NZ
Private BagPrivate Bag 92000Common in NZ and AU
GPO BoxGPO Box 999City general post office boxes

Do not use a lone contains Box rule. That can hide shipping for streets such as Box Hill Road or Box Street.

Tips before you publish

  • Keep all spellings in one comma list on one condition. Two separate address-line conditions in the same group must both match (AND), so split them only across OR groups.
  • Cover line 1 and line 2. Some themes put the box number on line 2.
  • Test the hard carts: PO Box only, street plus PO Box on line 2, Locked Bag, and a normal street.
  • If you also need metro versus remote prices, that is postal targeting, not address-line matching. See postcode rates, UK Highlands and Islands, Australia remote postcodes, and New Zealand rural delivery.
  • For pickup and local delivery visibility more broadly, see hide pickup and local delivery.

Hide undeliverable methods when the address is a PO Box

7-day free trial. Free on development stores.

Try the app free

What this rule cannot do

It cannot verify a postal box against a carrier or national address file. It cannot geocode a street. It cannot stop a customer from typing a fake street. Calculated Shipping rates zones still price by country, city, and postal code, not by street text; only a shipping script reads the street. Use hide rules for address-line control, and zones for geography.

Frequently asked questions

›Can Shopify hide shipping for PO Box addresses?

Native zones do not read street text. SMART Delivery customizations can hide existing methods when Shipping address line 1 or line 2 contains a PO Box style pattern. This does not require Carrier Service. Shopify supports it for rates from carrier services and shipping apps; with Shopify's built-in rates the address may not reach the rule.

›Does SMART validate that a PO Box is real?

No. The rule matches the typed address text, case-insensitively. It is not an address-validation or carrier deliverability check.

›Should I put PO Box rules in Shipping rates?

Usually no. Shipping rates zones match country, city, and postal code. Customer street lines are Delivery customizations fields. Origin address lines are the warehouse, not the customer. The exception is a shipping script (Pro), which can drop or reprice the app's own rates for PO Box addresses.

›Can I keep pickup when I hide parcel methods for a PO Box?

Yes. Hide only the methods that cannot deliver to a box. Leave Store pickup (or another fulfillable method) visible so checkout still has an option.

›Why did a PO Box order still see Standard shipping?

The typed line may not include a pattern you listed (for example Box 12 with no PO). Add the spellings you see in orders, cover line 2, and test in real checkout. Checkout simulator does not apply delivery customizations.

Related articles