Blog

How to hide cash on delivery for some addresses in Shopify

DoorCheck Team ·

A DoorCheck rule that hides Cash on Delivery for PO boxes and military addresses, and the buyer's checkout with Cash on Delivery hidden

In many markets, cash on delivery is how a large share of buyers prefer to pay. It also carries a cost the other payment methods don’t: if no one pays at the door, you’ve paid for shipping both ways and sold nothing.

Most stores that offer COD don’t want to turn it off. They want to turn it off for some orders: addresses where it can’t work, areas where refused parcels are common, or orders too large to risk. Shopify doesn’t have a setting for that, but it does let apps change which payment methods a buyer sees. Here’s how.

When COD doesn’t make sense

  • PO boxes and parcel lockers. There’s no one at the door to hand over cash. (If you can’t deliver to them at all, block PO boxes in checkout instead.)
  • Military addresses. APO, FPO and DPO parcels go through the military mail system, which doesn’t collect payment.
  • Remote or high-return areas. If parcels to some postal codes or regions are often refused, you may want buyers there to pay up front.
  • Large orders. A refused order worth several hundred dollars costs more than a refused one worth twenty.
  • Some products. Made-to-order or personalised items can’t be resold if the buyer refuses them.

What Shopify lets you do

Shopify’s built-in settings let you offer a manual payment method like cash on delivery or turn it off. They don’t let you hide it based on the delivery address, the cart, or the order total.

What Shopify does provide is payment customizations: apps can hide, rename or reorder the payment methods a buyer sees, based on what’s in checkout. The change happens inside Shopify’s checkout, so it works with your existing payment settings and needs no theme code.

Hiding COD with DoorCheck

DoorCheck’s payment rules let you choose which payment methods a rule affects and the conditions it applies to:

  • The address: PO boxes, military addresses, states or provinces, or postal codes (exact codes or prefixes like 9*).
  • The countries the rule applies in.
  • The order total: the rule applies from an amount you set, in your store’s currency.
  • Products in the cart: only when a product with a tag you choose is in the cart.

The rule applies when the address matches any of the kinds you picked and the other conditions you set are met. The payment method is then hidden, and the buyer chooses from the methods that are left and pays as normal.

Example: no COD for PO boxes and military addresses

  1. In DoorCheck, open Shipping and payment and add a payment rule.
  2. Choose Hide, and pick Cash on Delivery (COD) from your store’s payment methods.
  3. Under addresses, select PO boxes and Military addresses.
  4. Save. Buyers with those addresses won’t see COD; everyone else still will.

Example: no COD over $300

Add a payment rule that hides COD and set the order total to 300. Orders under that amount can still use COD.

Example: pay up front in some postal codes

Add a payment rule that hides COD and list the postal codes, or the first digits followed by *, for the areas where refused parcels are a problem.

Rename or move instead of hide

Sometimes the right answer isn’t to hide a method but to explain it. Payment rules can also rename a method (for example, “Cash on delivery (+2 days)”) or move it to the top or bottom of the list, so the option you prefer is the one buyers see first.

Shipping options work the same way

The same conditions apply to shipping options. You can hide express rates for remote postal codes, hide courier rates for PO boxes, or rename a rate for some regions, from the same page in DoorCheck. The features page lists everything a rule can do.

Common questions

Can Shopify hide cash on delivery by postal code without an app?

No. Shopify’s own settings turn cash on delivery on or off for the whole store. Hiding it for some postal codes, addresses or order totals needs a payment customization, which an app adds.

Can I hide COD only for some products?

Yes. Tag the products, for example made-to-order, and limit the payment rule to carts that contain a product with that tag.

Does hiding COD block the order?

No. The buyer still checks out, with the payment methods that are left. To stop an order with an address you can’t deliver to, use an address rule: see what to check in Shopify address validation.

The short version

You don’t have to choose between offering cash on delivery to everyone and no one. Hide it where it can’t work or costs you too much, by address, postal code, order total or product, and keep it for the buyers who rely on it.

Check every address before the buyer pays

DoorCheck runs inside Shopify checkout. Install it, turn on the rules you need, and you’re done.

Install DoorCheck free

Free to install. No credit card.