How to Add Condition(s) to a Conditional Payments Rule?
-
Scroll down to the Conditions row and you will see 3 columns next to it.
-
You need to select the condition, conditional operator, and the value to match in these fields, respectively.
- To add another condition, click on the + Add Condition button in the Conditions row.
In a similar manner, you can add any number of conditions to the Conditional Payments for WooCommerce you want.
A condition could be related to:
- Product: Cart contains product, cart contains Variable Product, Product Categories, Product Quantity
- Cart: Cart subtotal (before discount), cart subtotal (after Discount), Cart quantity, shipping class, coupon, total weight
- Shipping: Shipping Method
- Billing Address: First name, Last name, Company, Address, Address 2, Country, City, Postcode, Email, Previous Order
- Shipping Address: First name, Last name, Company, Address, Address 2, Country, City, Postcode
- Customer: User, user role, Logged in / out
Example Conditions
Example #1
Let’s say, you want to limit the scope of a payment gateway for the location ‘UK’, the condition will be:
Example #2
Similarly, to apply a payment-method-specific condition to a particular product named Frankie Sweatshirt, the condition will be:
Example #3
Now, if you want to specify a payment rule for the condition where the customer’s cart has 5 or more Frankie Sweatshirts, you must use 2 rules, as shown below: