Checkout5 min read

Show Cash on Delivery Only for Local Pickup in Shopify

Offer Cash on Delivery only when the buyer picks up, or hide it for chosen delivery methods, with one payment rule on the delivery method. Steps, test and FAQ.

In this guide
  1. Why offer cash only for some delivery methods?
  2. Which rule do I need?
  3. How do I show Cash on Delivery only for local pickup?
  4. How do I test it before buyers see it?
  5. What if Cash on Delivery still shows for shipping?
  6. What else can the rule look at?
  7. FAQ
  8. Try it

To show Cash on Delivery only for local pickup, hide it for every other delivery method. In Checkora: Hide Payment Methods that is one rule: the condition Delivery method is not one of Local pickup (and Pickup point, if you offer it), and the action Hide payment methods with your Cash on Delivery name. The rule runs as a Shopify Function, so you need no theme code.

The same condition works the other way round too: hide Cash on Delivery only for pickup, or only for local delivery, and keep it for everything else.

Why offer cash only for some delivery methods?

In Shopify, Cash on Delivery is a manual payment method that you switch on in Settings > Payments, and once it is on, every checkout shows it (Shopify Help Center: Manual payment methods). That does not suit every delivery option:

  • Local pickup. The buyer pays at your counter, so cash is easy to take.
  • Shipping by carrier. Cash at the door depends on your carrier collecting it, and a refused parcel comes back at your cost.
  • Local delivery by your own driver. Some shops are happy to take cash here, others are not.

A payment customization decides which payment methods a buyer sees based on the checkout, including the delivery option they chose (Shopify Help Center: Checkout customization).

Which rule do I need?

What you want Condition Action
Cash on Delivery only for pickup Delivery method is not one of Local pickup, Pickup point Hide payment methods: your COD name
No Cash on Delivery for pickup Delivery method is one of Local pickup, Pickup point Hide payment methods: your COD name (or start from the Hide COD for pickup preset)
Cash on Delivery for pickup and local delivery, not for shipping Delivery method is one of Shipping Hide payment methods: your COD name
Only Cash on Delivery for pickup, nothing else Delivery method is one of Local pickup Show only these payment methods: your COD name

The delivery methods the condition knows are Shipping, Local delivery, Local pickup and Pickup point.

How do I show Cash on Delivery only for local pickup?

  1. In Settings > Payments, note the exact name of your Cash on Delivery method as buyers see it, for example Cash on Delivery (COD).
  2. In Checkora: Hide Payment Methods, open Rules and click Add rule. Under Rule, enter a Name, such as “COD only for pickup”. Only you see this name.
  3. Under Conditions, click Add condition, choose the Condition type Delivery method, set it to is not one of, and select Local pickup and, if you offer it, Pickup point.
  4. Under Action, set What should happen to Hide payment methods.
  5. Under Which payment methods, set Name match to Name contains and enter the Name text, for example Cash on Delivery. Names are compared without letter case.
  6. Turn on Switched on and click Save.
  7. On the Rules page, check that the Payment methods card shows On. If it shows Off, click Turn on. Rules reach checkout only when it is on.

A delivery method condition only counts once the buyer has chosen a delivery option. Until then the condition is not met, so the rule hides nothing.

How do I test it before buyers see it?

Use the Simulator. It runs your saved rules through the same function your checkout runs and changes nothing in your store.

  1. Open Simulator.
  2. Add a cart under Cart, and under Payment methods list the methods your checkout offers, with the names buyers see.
  3. Under Delivery, choose Local pickup as the Delivery method. Under Before your rules, Cash on Delivery should have no Hidden badge.
  4. Change the Delivery method to Shipping. Cash on Delivery should now show Hidden, and every other method should still be listed under What the buyer sees.

To try the rule before you switch it on, tick Include turned-off rules. You can also enter a Scenario name and click Save scenario for each case, then click Run all after you change your rules later.

What if Cash on Delivery still shows for shipping?

  • The payment function is off. On Rules, the Payment methods card must show On. If it shows Needs update, click Update checkout.
  • The name does not match. The rule compares its Name text with the name the buyer sees. Payment providers can show their own COD method under a local name, such as Contrassegno or Nachnahme, so check the names in the Simulator.
  • The buyer has not chosen a delivery option yet. The condition is not met until they do.
  • The cart is very large. The Rules page shows how many different items a cart can hold while your rules are still checked. In bigger carts Shopify skips the rules and checkout shows every payment method.

What else can the rule look at?

The delivery method is one condition among several. Rules can also hide, rename or reorder payment methods by cart total, products, country, postcode, customer and B2B buyer, and the app can hide Cash on Delivery for customers with an open or cancelled COD order. Rules work on every Shopify plan. For a cash limit on large orders, see how to hide Cash on Delivery above an order total; for repeat refusals, see hiding COD for customers with refused orders. All features are on the app’s page.

FAQ

Can I offer Cash on Delivery only for local pickup in Shopify? Yes, with a payment customization that hides Cash on Delivery for every delivery method except pickup. In Checkora: Hide Payment Methods that is one rule on the Delivery method condition.

Does this need theme code? No. The rule runs as a Shopify Function inside checkout.

Does it work on the Basic plan? Yes. Rules work on every Shopify plan. Cash on Delivery is not a credit card method, so the Shopify Plus limit on changing the card option in the United States and Canada does not apply to it.

Will buyers who choose shipping still be able to pay? Yes. Only Cash on Delivery is hidden; every other payment method you offer stays.

Can I hide Cash on Delivery for pickup instead? Yes. Use is one of Local pickup and Pickup point, or start from the Hide COD for pickup preset under Add from preset. A preset rule starts switched off so you can test it first.

Try it

If you offer Cash on Delivery and want it only where it fits, try Checkora: Hide Payment Methods from the Shopify App Store, add one delivery method rule and check it in the Simulator.