To block parcel locker addresses on Shopify, identify the phrases used by the locker networks in your target markets, match them case-insensitively in the relevant address fields, and tell shoppers which alternative address or shipping method to use. Test real street names and apartment text to limit false positives.

A locker restriction may be necessary when a product requires a signature, refrigeration, age verification, oversize handling, or a carrier that does not deliver to lockers. It should follow a fulfillment requirement, not a blanket assumption that locker addresses are invalid.

Define what counts as a parcel locker

“Parcel locker” is not one universal address format. Networks and countries use different terms, abbreviations, and fields. Build a market-specific phrase list from rejected labels, carrier documentation, and support cases.

Examples might include a provider name, parcel locker, locker, or a network-specific identifier. Do not copy a generic internet list into production. A broad word such as locker could appear in a legitimate street, business, or building name.

For every phrase, record:

  • The market and carrier it applies to.
  • The address field where it appears.
  • Whether the match should be exact, starts-with, or contains.
  • Known legitimate values that must remain allowed.
  • The alternative delivery method you can offer.

Choose block, hide, or redirect

CartBlock is used here for validation. Hiding a delivery option may require a separate delivery-customization capability.

Use the least disruptive mechanism that enforces the fulfillment constraint:

Merchant goal Better starting point
One shipping service cannot deliver to lockers Hide or prevent that service where supported
A restricted product cannot go to any locker Block checkout when product and address conditions both match
Another address type is acceptable Explain the supported residential or business address
A supported pickup network exists Direct the shopper to the approved pickup option

Do not block the entire order when changing the shipping method or removing one product would solve the problem.

Configure a parcel-locker rule in CartBlock

CartBlock documents shipping-address text conditions and case-insensitive matching. Verify the available fields, comparison operators, plan, and checkout surfaces in your installed version before launch.

  1. Create a validation named for the market and carrier.
  2. Select address line 1 and, where needed, address line 2 or company.
  3. Add one verified locker phrase at a time.
  4. Choose the narrowest supported comparison.
  5. Enable case-insensitive matching so capitalization does not change the result.
  6. Add product, country, market, or shipping-method conditions only when the installed builder supports that exact combination.
  7. Write a field-level correction message.
  8. Save, test, and review checkout logs or support evidence.

If the current interface cannot combine the necessary product and address conditions, do not claim the rule can. Ask CartBlock support to confirm the supported configuration or choose another fulfillment control.

Write a useful error message

Explain the reason and the next step:

This item cannot be delivered to a parcel locker. Enter a residential or business street address, or remove the restricted item to continue.

If only one shipping method is incompatible, name the supported alternative instead of asking the customer to replace a valid address.

Test false positives deliberately

Test Expected result
Verified locker phrase in address line 1 Blocked when policy applies
Same phrase in lowercase Same result
Network identifier in address line 2 Matches the documented field rule
Business name containing “Locker” Proceeds unless explicitly restricted
Street name containing a partial keyword Proceeds
Restricted phrase with eligible alternate shipping Matches the chosen recovery flow

Test spacing, punctuation, abbreviations, copied text, and every enabled market. Keep a regression list of false positives and rerun it whenever you add a phrase.

Maintain the rule as networks change

Review the match list after carrier changes, expansion into a new country, or recurring delivery failures. Assign an owner and capture the reason for each phrase. Delete obsolete phrases rather than letting the rule become an unexplained blocklist.

Track outcomes that reveal rule quality: how often shoppers correct the address, abandon checkout, contact support, or report a false positive. These signals do not prove causation, but they help identify a rule that is too broad or unclear.

Frequently asked questions

Can Shopify identify every parcel locker automatically?

Do not assume so. Locker formats vary across providers and markets. Build rules from the carriers and networks your store actually uses.

Should I match only address line 1?

Not always. Some networks place the locker phrase or identifier in address line 2 or the company field. Use fulfillment evidence to choose fields.

Is a parcel locker the same as a PO box?

No. Both can have carrier restrictions, but their formats and delivery networks differ. Maintain separate rules and test cases.

Keep the restriction narrow and recoverable

The best parcel-locker rule targets a verified provider format, applies only to affected orders, and gives the shopper an immediate alternative. Review CartBlock's address-validation workflow and confirm the current text conditions before launch, and explore CartBlock address rules.

Sources