Skip to content

How to Create Commission Rules (Pro)

Rules exist because a single rate rarely fits a whole catalogue. A 40% margin product can carry 20% commission; a 12% margin product cannot carry 10.

Know your margins per product or per category. A rule that pays more than the product makes is a rule that loses money at scale, and rules apply to every affiliate at once.

Set your global rate first under Commission Settings. Rules are overrides, so the global rate is the fallback for everything they do not cover.

Go to DevDiggers Plugins → Affiliates → Rules.

The Rules screen with tables for product rules, category rules and user role rules

Three tables sit on the one screen, one per rule type. They all save together with the button at the bottom.

In the Products Rules table, click Add Row. A new row appears with five fields.

The Add Row button under the product rules table

  • Name is your own label. Use something you will recognise in six months, like Premium range 20%.
  • Products is a searchable multi-select. Add every product the rule covers.
  • Commission Type is Percentage or Fixed.
  • Commission Amount is the number.
  • Status is Active or Inactive.

Type a few letters into Products and pick from the results. The field takes as many products as the rule needs.

The product selector on a product rule row

Percentage is the safer default. It scales with the price, so a rule set today still makes sense after a price change.

The Commission Type dropdown and Commission Amount field on a rule row

Fixed pays a flat amount per line item regardless of price. Use it for a product with an unusual margin, or where you want a predictable cost per sale. Note it pays once per line, not once per unit: a line with a quantity of three pays the fixed amount once.

Categories are usually the better tool. One rule covering a category keeps working as you add products to it, where a product rule needs editing every time.

In the Product Categories Rules table, click Add Row and pick the categories.

A rule on a parent category also covers products whose category sits underneath it. A rule on Clothing catches Clothing → Shirts without listing it.

The category rules and user role rules tables on the Rules screen

The User Roles Rules table matches the customer’s role, not the affiliate’s. That distinction catches people out.

The use for it is a store with a wholesale role. Pay a lower percentage on wholesale orders, where the margin is thinner, without touching retail.

Set each row’s Status to Active and click the save button at the bottom of the screen.

Only active rules are considered. Setting a rule to Inactive is the safe way to pause it for a season without losing the products list.

Rules resolve most specific first:

  1. Product rules
  2. Product category rules
  3. User role rules

So a product rule beats a category rule covering the same item, and both beat a user role rule.

A matching rule also beats the affiliate’s own commission rate. If a product rule applies, the affiliate’s personal rate is never consulted for that line item. This trips people up when they raise a top partner’s rate and see no change on the products a rule already covers.

Where no rule matches, the chain falls back to the affiliate’s own rate, then to any active earnings tier, then to the global default.

  1. Open an affiliate’s referral link in a private browsing window.
  2. Buy one product the rule covers and one it does not, in the same order.
  3. Go to DevDiggers Plugins → Affiliates → Commissions.

The Commissions list showing each commission with affiliate, order, product, amount and status

You get two commission rows from that one order. Divide each Commission amount by its line total. You should see two rates: the rule’s rate on the covered product, the fallback on the other.

Buying both in one order is the point. It proves the rule matched a line rather than the order.

Two product rules can list the same product. When they do, the first active matching rule in the table wins. A stale rule near the top quietly overrides a newer one below it.

Keep the tables short. One rule per commercial decision, not one per product.

Rules apply to commissions created after you save. Rows already in the list keep the amount they were created with, so a mid-campaign change produces two rates in the same report. Set rules up before you recruit for a campaign, not during it.