Mechanic Get Mechanic

Shopify Function ยท Payment methods

Restrict cash on delivery to a chosen shipping country

Hide cash on delivery when the known shipping destination is outside your chosen country. The sample permits Canada.

How the rule works

  1. When
    A known shipping destination is outside Canada and cash on delivery is available.
    Then
    Hide Cash on delivery from the payment choices.

What shoppers see

Shipping to the US
The shopper sees Credit card and Bank deposit, in that order.
Shipping to Canada
The shopper sees Credit card, Bank deposit, and Cash on delivery, in that order.

Set it up in your shop

Match the rule to a payment method already active in your shop. Compare which methods appear, their labels and their order in the two example carts.

Open the rule as a draft in Mechanic. Test it with your products before publishing.

Customize this Function in Mechanic