LeDuc Systems

PO box and address blocking after Shopify Scripts

I'm Tyler, and I make LeDuc Address Rules. A common Shopify Script hid every shipping rate when the address looked like a PO box, so the shopper couldn't finish checkout. That script stopped running on June 30, 2026. The Functions way is a checkout validation that shows a clear message at the address field.

What the Script approach looked like

Shipping scripts could read the shipping address and hide shipping rates. To block PO boxes, a script matched text such as "PO Box" in the address and hid every rate. The shopper then saw that no shipping was available, with no reason given, and often left.

The Functions way

There are two Function APIs you can use:

Shopify's own Checkout Blocks app had an address blocker, but Shopify deprecated it and set it to sunset on August 31, 2026.

With LeDuc Address Rules

  1. Install the app and open it. PO boxes are blocked from the first visit.
  2. Turn on the other rules you need and edit the messages shoppers see.
  3. Type an address under Test an address to see what checkout would say.
  4. Try a blocked address in your checkout, such as PO Box 123. The message shows at the Address field.

What it can block

Blocking PO boxes is on the free plan; the other rules are on the paid plan. Local pickup is never blocked. Addresses are checked inside Shopify and are never sent to or kept on my server. More detail: LeDuc Address Rules.

Status, November 2026: my Shopify apps are in Shopify App Store review and not installable yet. Each app's page will link to its App Store listing once it is approved.

Back to all Shopify Scripts replacements. Questions? Email me at tyler@leducsystems.com.

FAQ

How do I block PO boxes on Shopify now that Scripts are gone?
Use a cart and checkout validation function. It shows a message at the Address field and checkout won't place the order until the address is fixed. LeDuc Address Rules does this, with PO boxes blocked on its free plan.
Can I still hide shipping rates for PO boxes instead?
Yes, with a Delivery Customization function. It works like the old shipping script, but the shopper only sees that no shipping is available, with no reason.
Does it block local pickup?
No. LeDuc Address Rules never blocks local pickup or pickup points, because nothing ships to the shopper's address.
Do I need Shopify Plus?
No. Stores on any plan can use public App Store apps that contain functions. Only custom apps with functions need Plus.

Sources: Shopify developer changelog, Shopify Scripts will be deprecated on June 30, 2026; Shopify Help Center, Transitioning from Shopify Scripts to Shopify Functions; Shopify developer docs, Function APIs. Read on 2026-11-07.