How to add a new conditional payments rule
A Conditional Payments for WooCommerce rule combines conditions and actions to control which payment methods appear at checkout. You can create as many rules as your store needs.
Create each rule at WooCommerce > Settings > Payments > Conditions. The form includes Status, Rule Name, Conditions, Actions, Set no payment methods message, and Save Changes.
In The Article
Step 1: Open the rules list
- Go to WooCommerce > Settings > Payments, then open Conditions.
- On the Conditional Payments Rules list, click Add New.
The list includes Bulk actions, Apply, Search, and columns for Title, Status, and Date. The current Payments tab uses a General and Conditions sub-nav. Older screenshots may label the first item Payment methods instead of General.
Step 2: Set the status and rule name
On the Add Conditional Payments Rules form, turn on the Status toggle and enter a clear Rule Name, such as “Hide COD for Specific Product”.
Step 3: Add conditions
In Conditions, choose a field, an operator, and a value. Click + Add Condition if you need another condition. For a fuller walkthrough, see How to add a condition to a conditional payments rule.
Step 4: Add actions
In Actions, choose what should happen when the conditions are met, then select the payment method or methods. Click + Add Action if you need another action. For a fuller walkthrough, see How to add an action to a conditional payments rule.
Step 5: Set the no payment methods message
If the rule can leave a cart with no payment methods, fill in Set no payment methods message (Pro). For a fuller walkthrough, see How to set a custom message for no payment methods. Then click Save Changes.
Pro Tips
- Use a Rule Name that states the method and the condition, so the rules list is easy to scan.
- Turn a rule off with the Status toggle while you test, instead of deleting it.
- Repeat these steps to add as many rules as your store needs.
FAQs
1. Where do I add a new rule?
Go to WooCommerce > Settings > Payments, then open Conditions and click Add New.
2. What fields does the rule form include?
Status, Rule Name, Conditions (+ Add Condition), Actions (+ Add Action), Set no payment methods message, and Save Changes.
3. Why does an older screenshot say Payment methods instead of General?
Older documentation screenshots use a Payment methods | Conditions sub-nav. The current admin shows General | Conditions.