How to hide Cash on Delivery for large orders on Shopify
Short answer: Hide the Cash on Delivery payment method when the cart subtotal is over 500, so big orders are paid upfront. In Checkpost, choose “Hide cash on delivery over $500” from Templates, adjust the values, test it, then save and enable the rule.
The problem
Cash on delivery is popular in many markets, but a refused COD parcel costs two shipping legs and ties up stock. The bigger the order, the bigger the loss when the buyer isn't home or changes their mind at the door.
How to set it up
- Install Checkpost from the Shopify App Store.
- Open Templates and choose Hide cash on delivery over $500.
- Set the amount, and match the method name to the one your checkout shows (e.g. "Cash on Delivery (COD)").
- Use Try this rule to test a sample cart, then click Save rule.
The rule
Hide payment methods containing "Cash on Delivery" when all of these conditions is true:
- Cart subtotal is greater than 500
Shoppers see no message: the methods are changed before checkout shows them.
Rule definition (JSON)
{
"name": "Hide COD over 500",
"action": {
"kind": "hide_payment",
"methods": [
"Cash on Delivery"
],
"match": "contains"
},
"match": "all",
"conditions": [
{
"kind": "number",
"field": "cart_subtotal",
"op": "gt",
"value": 500
}
]
}Where this rule works
This changes matching payment methods that Shopify exposes to the customization. Payment rules do not have the same express-checkout coverage as cart validation. Shopify limits wallet customization and credit-card customization on non-Plus US/Canada stores. See Shopify's payment compatibility and verify your COD/manual method in a development store. Geographic payment rules currently use the first delivery group's address.
Tips
- Match the name your checkout shows. Manual methods often read "Cash on Delivery (COD)"; "contains" matching covers both spellings.
- Amounts are in your store's currency and converted automatically for other markets.
- Use the cart total instead of the subtotal if shipping and taxes should count towards the limit.
Can you do this without an app?
Shopify can't hide a manual payment method based on the cart. Without an app, COD is shown for every order or for none.
FAQ
Do shoppers see a message when COD is hidden?
No. Payment and delivery rules only change the list of methods; the shopper simply doesn't see Cash on Delivery.
Can I hide other payment methods the same way?
Yes. Add any method name, such as Bank Deposit or Klarna, to the rule.
Related rules
Hide cash on delivery for first orders
Only returning customers can pay cash on delivery: hide it for guests and customers without a previous order.
Hide pay-later methods for pre-orders
Hide buy-now-pay-later and cash on delivery when the cart contains pre-order products.
Show bank transfer first for wholesale
Move the bank transfer payment method to the top of the list for customers tagged wholesale.
Cash on delivery in domestic country only
Hide Cash on Delivery when the shipping country is outside India, while leaving prepaid methods available. Replace IN with your supported country.