From the order to the commission in ten steps
The help of the commission rules shows the same way as a decision tree. In words:
- 1. Assignment: there is only commission for an order with a partner code, from link, short link, QR code, partner voucher, entry in the cart or the customer account. Upper and lower case do not matter.
- 2. Active partner: for an inactive partner the plugin calculates nothing.
- 3. When it is booked: when the order is old enough (14 days from the time of the order by default), has the chosen status and, if customer groups are selected, the customer is in one of them; cancelled orders never, orders older than two years no longer. Every order is evaluated once. The settings of the sales channel of the partner apply.
- 4. Pre-checks: an own order with own commission switched off, an expired assignment, a subsequent order with subsequent orders switched off or a base below the minimum order value give €0.00.
- 5. Rates: type, rate, subsequent rate, minimum order value and maximum commission of the partner; an active partner group replaces them all. A subsequent order uses the subsequent rate.
- 6. Base: the net value of the goods after discounts, without shipping, in the default currency; discounts of a promotion only reduce its products.
- 7. Without commission rules: percentage rate × base, per piece rate × pieces, per order the fixed amount.
- 8. With commission rules: if a rule per order has the highest priority of the whole order (on a tie with a rule per product it comes first), its amount is the commission. Otherwise every line takes its winner, without a match the rate of the partner, and the lines are added up. In the “Always” modes the priority does not count.
- 9. Result: changes by other plugins, then the maximum commission, below 0 becomes 0, rounded commercially to the cent (€5.625 gives €5.63). Booked with a log.
- 10. Afterwards: a cancellation gives a negative manual booking for every positive booking, the decision “Fraud attempt” as well. Available is the sum of the commissions minus what has been redeemed.