Order of Rules Execution
When several ‘Pricing Rules’ match the same booking, Chauffeur Taxi Booking System applies them in a defined sequence. The execution order is controlled by three settings: ‘Rule Level’, ‘Order’, and ‘Next Rule Processing’. Understanding how these settings work together helps prevent unexpected price changes.
Execution Settings
| Setting | How It Works |
|---|---|
| Rule Level | Determines which group of rules is checked first. Higher levels are processed before lower levels. Set it in the rule’s ‘Options’ tab. The setting is optional; an empty value uses the highest default level (9999). |
| Order | Determines the sequence within the same Rule Level. The matching rule with the highest Order runs first. Set it in the WordPress editor sidebar under ‘Post Attributes’ -> ‘Order’. |
| Next Rule Processing | Controls whether to check more matching rules at the current level. ‘Enable’ continues to the next matching rule; ‘Disable’ ends processing at that level. If lower levels exist, they are still processed. Find this option in the rule’s ‘Options’ tab. |
Good to Know
Assign different ‘Order’ values to rules that might match the same booking. If matching rules have the same Order (for example, both use 0), their relative execution order is not guaranteed.
How Rules Are Executed
- The plugin starts at the highest configured ‘Rule Level’. If no custom levels are specified, all rules use the default highest level.
- At that level, it checks matching rules in descending ‘Order’, starting with the highest value.
- When a rule matches, it applies the configured price changes. Components set to ‘- Inherited -‘ retain their current values.
- If ‘Next Rule Processing’ is set to ‘Enable’, the plugin can execute the next matching rule at the same level. If set to ‘Disable’, it skips the remaining rules at that level.
- Once processing at the current level ends, the plugin moves to the next lower configured level, if one exists, and repeats the process. Execution finishes after all applicable levels have been checked.
Example: Multiple Matching Rules
Suppose three rules match a booking:
| Rule | Rule Level | Order | Next Rule Processing |
|---|---|---|---|
| Rule A | 9999 | 20 | Disable |
| Rule B | 9999 | 10 | Enable |
| Rule C | 9998 | 5 | Disable |
Rule A executes first because it has the highest Order at level 9999. Its ‘Next Rule Processing’ setting is ‘Disable’, so Rule B is skipped. The plugin then checks level 9998, where Rule C can still execute. Disabling next-rule processing does not prevent rules at lower levels from running.
How Multiple Rules Affect Prices
Each matching rule can modify individual price components. A later executed rule can change a value set by an earlier rule, while a component marked ‘- Inherited -‘ keeps its previously determined value. Rules do not automatically add their complete price tables together.
If your configuration does not require several execution levels, you can leave ‘Rule Level’ at its default and control rule priority with ‘Order’ and ‘Next Rule Processing’. For a broader explanation of the available pricing conditions and settings, see Pricing Rules Overview.
Summary
Document version: 1.1
Last updated: November 20, 2026
Plugin version: 9.8+