Order Approval Rules FAQ¶
Questions¶
Can a rule reject or cancel an order automatically?¶
No. The only outcome of a rule is a manual review. The Reject action is a decision you take yourself, and even that does not cancel or refund anything.
Does the customer still have to pay while the order is in review?¶
Yes. The invoice is created and can be paid as usual. The review only decides whether the paid services are provisioned. If you approve before the payment arrives, the order is provisioned on payment like any other.
Can I combine conditions, for example "over 100 and account younger than a day"?¶
No. Each rule has one condition, and an order goes into review as soon as any one enabled rule matches. Two rules therefore act as "either one". When both match, both names appear in Triggered rule(s).
What does the priority do?¶
It sets the order in which rules are listed, in the rule list and in the Triggered rule(s) column. All enabled rules are always evaluated, so the priority never prevents a rule from matching.
Am I notified about a new review?¶
No. The extension sends no e-mail or notification. Check Pending Reviews regularly.
Is the customer told that the order was rejected?¶
No. The notice on the service page disappears, and nothing else is shown or sent. Contact the customer yourself.
Can I undo an approval or a rejection?¶
Not in the admin area. Approve and Reject are only offered while the review is pending.
Does disabling or deleting a rule release the orders it flagged?¶
No. It only affects orders created afterwards. Existing pending reviews stay pending and keep holding their orders until you approve or reject them.
Are orders in different currencies treated differently?¶
No. The Amount of an Order value rule is compared with the order total as a number, whatever the order's currency is.
Are orders created through the admin API checked?¶
Every new order is checked at the moment it is created. An order created through the API has no services yet at that moment, so its total is zero and it contains no product. Order value and Product specific rules see it that way.
What happens to my data when I uninstall?¶
Both extension tables are dropped, so rules and reviews are gone. Orders, services and invoices are not touched. See Installation.
Troubleshooting¶
An order I expected to be flagged has no review¶
- Check that the rule is Enabled.
- The order was created before the rule existed or was enabled. Rules are only checked once, when an order is created.
- Order value compares against service price times quantity, summed over the order's services. This can differ from the invoice amount.
- A Product specific rule whose product was deleted shows "Order contains a product (none selected)" and never matches. Select a product again.
- A New account rule with
0hours never matches.
Every order is flagged¶
- An Active service count rule counts the services of the new order too. With a count of
1, or0, every order matches. Add the number of services a typical order contains to the threshold you have in mind. - An Order value rule with is greater than or equal to and the amount
0matches every order.
The amount in the Condition column is not what I entered¶
The Condition column shows the amount without its decimal part, for example "99.00" for 99.50. The rule itself compares against the exact amount.
An order was flagged, but the service is active anyway¶
- The service was free. Paymenter activates services with a price of zero during checkout, before the rules are checked.
- The review was already approved or rejected when the invoice was paid. Only a
pendingreview holds an order back. See the warning under Reject. - The extension was disabled when the invoice was paid.
- The service was activated by hand in the admin area.
I approved the order, but the service is still pending¶
Approve only provisions services that have a paid invoice. If the invoice is still open, the service is provisioned when the customer pays.
The service stays pending after I disabled or uninstalled the extension¶
The invoice was paid while the order was on hold. Paymenter processed the invoice then and does not process it again. Enable the extension again and approve the review, or activate the service by hand.
The customer does not see the notice¶
The notice is appended to the active theme's services/show.blade.php view. A theme without that view, or one that renders the service page differently, does not show it. The hold and the review list work without the notice.
"Base table or view not found: ext_order_approval_rules"¶
The migrations did not run. Disable and re-enable the extension. If that does not help, run this in the Paymenter root directory:
php artisan migrate --path=extensions/Others/OrderApprovalRules/database/migrations --force