How to add a condition to a conditional payments rule
Adding conditions to a Conditional Payments Rule allows you to define specific scenarios for enabling or disabling payment methods. Here’s how to do it:
Locate the Conditions Section
Scroll to the Conditions row, where you’ll find three fields:
- Condition: Select the condition type (e.g., product, cart subtotal, user role, etc.).
- Operator: Define how the condition will be evaluated (e.g., equals to, greater than, etc.).
- Value: Enter the matching criteria (e.g., UK, $200).
Add Multiple Conditions
Use the "+Add Condition" button to add more rules. You can add as many as needed, combining them for complex scenarios.
Extensive Condition Options
The plugin offers over 30+ condition types grouped into categories:
- Product-Based: Product in the cart, categories, quantities, etc.
- Cart-Based: Subtotal, weight, coupons applied, etc.
- Shipping-Based: Shipping method-based rule.
- Customer-Based: User roles, login status, etc.
- Billing/Shipping Address-Based: Country, city, postcode, name, etc.
Time-Based: Day of the week, date, etc.
This wide range of conditions ensures flexibility to create almost any rule your business requires.
Examples:
Example 1: Restrict a payment method for customers in the UK.
Example 2: Apply a rule specifically for the product "Frankie Sweatshirt".
Example 3: Define a condition for carts containing five or more quantities of products.
With this setup, you can create highly customizable rules tailored to your store’s unique needs.