Hide Shipping Rates for PO Boxes
Hide some or all shipping rates when the shipping address is a post office box. A Playwright Checkout Rules template for shipping options.
What it does
When the shipping address is (or isn’t) a PO box, Playwright hides the selected rates.
Use it to hide couriers that can’t deliver to PO boxes.
For example:
- Hide FedEx rates for customers shipping to PO Boxes
- Hide all rates for PO Boxes
Settings
Find it under Shipping Rules in Playwright, in Hide Rates. Give the rule a name, fill in these settings and select Save Rule.
- PO Box
- Choose Shipping Address - PO Box Qualifier and whether the address Is a PO Box or Is not a PO Box.
- Rates to Change
- Which shipping rates to hide. With “None” the rule hides nothing. See Choosing shipping rates.
- All: Every shipping rate.
- Rate Name: Rates whose name does (or doesn’t) match, contain, start with or end with what you enter. Names are compared without regard to capital letters.
- Rate Code: Rates whose code (the service code a carrier or shipping app gives the rate) does or doesn’t match what you enter.
- Rate Source: Rates from a given source. Not available on Shopify Functions: rules that use it aren’t published.
- Rate Price: Rates above or below a price, in dollars.
- Rate Discounted: Rates an earlier shipping rule did or didn’t discount.
- Multi-Select - Meets all criteria: Combines up to three choices; all must match.
- Multi-Select - Meets any criteria: Combines up to three choices; any can match.
Example: No FedEx to PO boxes
- PO Box: PO Box Qualifier, Is a PO Box.
- Rates to Change: Rate Name, Does, Contain one of,
FedEx.
At checkout: A customer shipping to “PO Box 123” doesn’t see FedEx rates. Other addresses see every rate.
On Shopify Functions
Playwright publishes this template as part of the Shopify customization “Playwright: shipping rules”.
It runs as it did with Shopify Scripts.
These conditions aren’t available in shipping option rules, so a rule that uses one isn’t published:
- Rate Source: The shipping rate source (Shopify or carrier) isn’t available to Shopify Functions. Select rates by name or code instead.
Tag conditions match whole tags only. See Conditions and Publishing.