This is a configuration example for hiding Bank Deposit when the cart contains specific products. Use this when you want to prevent Bank Deposit — which takes time to confirm payment — from being selected for products with low stock or products that require immediate shipping.
Prerequisite: The initial setup for payment limits must be complete. If you haven't done this yet, see "Initial Setup (Payment Limits)".
You can check the behavior after setup in [Demo] Hide Various Payment Types.
When you enable the payment rule, it checks the items in the cart at checkout and switches whether the payment method is shown.
Cart does not contain the target product: Bank Deposit is shown.
Cart contains even one of the target products: Bank Deposit is hidden.
(1) Create a payment rule
Open the app admin → "Payment rules" → "Create rule".
(2) Enter the settings
Set the following.
Setting | Value |
|---|---|
Title | Any internal title |
Display mode | Hide the specified payment methods |
Payment methods | Select "Bank Deposit" from the list |
Languages | All languages |
Customers | All customers |
Products | The collection or products of the target items |
Orders | All orders |
(3) Save and enable the payment rule
After saving the settings, select "Enable". Saving alone does not apply the payment rule.
(4) Check the behavior
Go to checkout with a cart that does not contain the target products and with one that does, and check whether Bank Deposit is shown.
The "Bank Deposit" preset in the list targets the manual payment method you created in Shopify named "銀行振込". It is hidden whether the checkout displays it as "Bank Deposit" or "銀行振込".
You cannot specify a product tag for the product condition of a payment rule. Specify a collection or products instead.
All conditions of a payment rule must be met (AND condition). If even one condition is not met, Shopify's payment settings are shown as they are.
A payment method name entered directly is compared with the name shown at checkout, including case. For multilingual stores, add the name for each language separately.