Tillward Checkout Rules

How do I hide a payment method for specific products on Shopify?

Put the products in a collection, then add a rule in Tillward Checkout Rules from the “Hide method for a restricted collection” template. When the cart holds any product from that collection, Shopify checkout hides the payment method you name, such as PayPal or cash on delivery. Carts without those products see every method.

Some products should not be paid for in some ways. A payment provider may not accept a product category, cash on delivery makes no sense for a digital download, and pre-orders may need to be paid up front.

Updated

The rule

Template in the app
Hide method for a restricted collection
What it does
When at least one item in the cart is from the collections you choose, checkout hides the payment method you name. The template starts with PayPal.
You fill in
  • The collections that hold the products
  • The payment method name. The template matches “PayPal”.

Example

Your pre-orders are in a collection called Pre-order. A buyer with one pre-order item and two in-stock items in the cart does not see PayPal. A buyer with only in-stock items does.

Steps in the app

  1. In Checkout Rules, choose “Hide method for a restricted collection” from the Rule templates gallery on the home screen.
  2. Pick the collection, and change the payment method name if it is not PayPal.
  3. Check the result in the checkout simulator beside the form.
  4. Save the rule to publish it.

Before you turn it on

  • One matching item is enough. The method is hidden for the whole cart, including the other items in it.
  • Instead of a collection, a rule can match a product, a variant, a product tag, a vendor, a product type or a SKU. The “Hide method for a restricted product type” template starts from the product type.
  • For digital products, the “Requires shipping” condition hides a method when the cart holds an item that does not need shipping.
  • A collection covers products you add to it later, so you do not have to edit the rule.

What it does not cover

  • In the U.S. and Canada, Shopify only lets stores on Shopify Plus hide the credit card. The editor warns you when a rule targets it.
  • A rename or a move aimed at a wallet such as Shop Pay or Apple Pay may have no effect, because Shopify controls how wallets appear.

Set it up

Install Tillward Checkout Rules from the Shopify App Store. It opens in your Shopify admin, where you follow the steps above.