Using Multiple Conditions in One Rule
A Print Rule can combine several conditions so that automatic printing happens only when an order matches the full workflow you define.
This is useful when one condition alone is not specific enough.
1. Open the Print Rule
In your WordPress dashboard, go to:
Deviking Order Autoprint → Print Rules
Edit the rule you want to configure.
2. Add More Than One Condition
You can combine conditions such as:
- Payment method
- Shipping method
- Product category
- Shipping country
- Shipping state / region
- Minimum order total
- Maximum order total
The rule is evaluated using the complete set of configured conditions.
3. Example: Cash on Delivery in Greece
A rule could use:
Trigger: Processing
Payment Method: Cash on Delivery
Shipping Country: Greece
Only Processing orders using Cash on Delivery and shipping to Greece will match.
4. Example: Regional Courier Workflow
You could configure:
Trigger: Processing
Shipping Country: Greece
Shipping State / Region: Attica
Shipping Method: Courier
Only orders matching all of these conditions will create a print job.
5. Example: High-Value Category Orders
Another rule could use:
Trigger: Processing
Product Category: Electronics
Minimum Order Total: 500
This can be used to route expensive Electronics orders to a dedicated printer or department.
6. Order Range with Other Filters
Minimum and Maximum Order Total can also be combined with other conditions.
For example:
Trigger: Processing
Shipping Method: Express Delivery
Minimum Order Total: 100
Maximum Order Total: 500
Only Express orders within that value range will match.
7. Keep Rules Easy to Understand
Although you can combine several conditions, try to keep each rule focused on one clear business purpose.
For example, instead of creating one very complex rule, it may be easier to maintain separate rules for:
- Domestic orders
- International orders
- Cash on Delivery
- Kitchen orders
- High-value orders
Clear rules are easier to troubleshoot and modify later.
8. Multiple Rules Can Match the Same Order
An order may match more than one enabled Print Rule.
For example:
Rule 1
Processing → Warehouse Printer
Rule 2
Processing + Food category → Kitchen Printer
An order containing Food products may match both rules and create separate print jobs for both printers.
This is useful when the same order needs to reach more than one department.
9. Avoid Overlapping Rules When Not Intended
If you do not want the same order to print multiple times, review your rule conditions carefully.
Make sure different rules are specific enough to avoid unintended overlap.
10. Test Complex Rules
After creating a rule with multiple conditions, test it with orders that:
- Should match
- Should not match
- Match only some of the conditions
This helps confirm that the rule behaves exactly as expected.