Mechanic Get Mechanic

Shopify Function ยท Payment methods

Hide cash on delivery when an order contains a preorder

Hide cash on delivery whenever an order includes a preorder item, including carts containing only preorders.

How the rule works

  1. When
    The cart contains at least one preorder unit and cash on delivery is available.
    Then
    Hide Cash on delivery at checkout, including on orders containing only preorders.

What shoppers see

Preorder only
The shopper sees Credit card and Bank deposit, in that order.
Ready-to-ship items only
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