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.

Step 1: Open the rules list

  1. Go to WooCommerce > Settings > Payments, then open Conditions.
  2. 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.

WooCommerce Settings Payments tab showing a Payment methods and Conditions sub-nav, the Conditional Payments Rules list, and an Add New button
Figure - The Conditional Payments Rules list, with Add New

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”.

The Add Conditional Payments Rules form with the Status toggle on and the Rule Name Hide COD for Specific Product
Figure - Status and Rule Name on the rule form

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.

A Conditions row with Product equal to Chaz Kangeroo Hoodie and an Add Condition button
Figure - The Conditions section of a new 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.

The Actions section with Disable Payments Method selected and Cash on delivery chosen, plus an Add Action button
Figure - The Actions section of a new 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.

The Set no payment methods message field filled with There is no payment method available to checkout
Figure - The Set no payment methods message field on the rule form

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.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.