6 min readLoyalty & Affiliate Programs

In short: A referral commission should be calculated on the net order value (after discounts, excluding tax and shipping), credited only once the order is completed, and paid out after the return period. Referrers need to see every commission in their account, and the shop needs to be sure it never pays on refunds or on orders the referrer placed for themselves. Below we go through every decision you’ll need to make and show how to automate referral payouts in WooCommerce.

What should the commission be based on?

This is the first decision – and the most common source of disputes:

Commission base Example: €123 order (€100 net + €23 VAT), €15 shipping, 10% commission Verdict
Amount paid (incl. shipping) €13.80 You pay commission on tax and delivery
Gross product value €12.30 Still paying on tax
Net value after discounts €10.00 Fair to both sides

Net value after discounts is also the easiest to explain: partners get a percentage of what the shop actually earned on the goods.

When should the commission be credited?

A WooCommerce order moves through several statuses. The commission shouldn’t appear at “Pending payment” or “Processing” – only when the order is completed. Cancelled, failed and refunded orders earn nothing.

The return period – commissions “on hold”

Even a completed order can come back as a withdrawal (14 days in the EU) or a complaint. That’s why a protection period is good practice: the commission is visible straight away, but becomes available for payout only after, say, 14 or 30 days. You never have to claw money back from a partner after a refund.

Which orders belong to the referrer?

Attribution rules must be clear and written into your program terms:

  • Referral link – the order belongs to the partner if the customer came through their link within the cookie lifetime (e.g. 30 days).
  • Partner’s coupon code – an order using their code belongs to them, even without the link.
  • No link, no code – the order belongs to the shop, with no commission.
  • A link or code on a new order always overrides an earlier attribution.

Repeat purchases by a referred customer

You can let the partner who referred the first purchase also earn on that customer’s later orders placed without a link or code (returning customers). It’s a strong motivator – and a higher cost for the shop. Consider a separate, lower rate for repeat purchases of the same product (renewals).

Referrers’ own orders

Partners shouldn’t earn commission on what they buy for themselves. Otherwise the referral program becomes a hidden discount.

What referrers should see in their account

Transparency builds trust. Partners should see:

  • a list of orders with commission: date, commission amount and status,
  • the balance available for payout and the amount still waiting for the return period,
  • their commission rate,
  • their payout history.

How to automate referral commissions in WooCommerce

Tracking commissions in a spreadsheet for a dozen partners takes hours and invites mistakes. Here’s how Affiliates Tree, an affiliate program for WooCommerce handles it.

Step 1: rate and attribution

In wpAsist → Affiliates Tree → Settings set the commission for a partner’s own sales (level 1) and the cookie lifetime. Commission is calculated automatically on the net order value – after discounts, excluding tax and shipping – and stored in the shop’s main currency.

Step 2: return-period protection and minimum payout

In General Settings switch on return-period protection, set how many days a commission waits after the order is completed, and set the minimum payout amount.

Affiliate payout settings in WooCommerce – cookie lifetime, minimum payout and return period
General settings: 30-day cookie lifetime, minimum payout amount, return-period protection and payout methods.

Step 3: renewal rates and returning customers (optional)

In VIP rates, renewals and developers you can set a separate rate for renewals (a repeat purchase of the same product) and let partners earn on referred customers’ later orders.

Step 4: partners see everything themselves

In My Account → Affiliates Program partners have Your Sales and Withdrawals – they see their commissions and can request a payout.

Affiliate payout requests with statuses in WooCommerce
Payout requests: after review set the status to In process, and after the transfer to Completed.

What to watch out for

  • Don’t base commission on the gross total with shipping – with low margins it can eat your whole profit.
  • Make the protection period longer than the return window – at least 14 days, ideally 30.
  • Put the rules in writing – who earns what, on which orders, when and how it’s paid.
  • Think about multiple levels – if referrers should also recruit referrers, see how to set multi-level commissions without paying for refunds.

Frequently asked questions

What’s the best base for a referral commission?

The net order value after discounts, excluding tax and shipping. It’s fair to the partner and safe for the shop.

When does the partner get the commission?

It appears once the order is completed and becomes available for payout after the return period, if you set one.

Does the partner earn on a referred customer’s repeat purchases?

Only if you switch it on. You can also set a separate rate for renewals.

Does a partner earn commission on their own order?

No. Commission is for referring other buyers, not for their own purchases.

Which currency is the commission recorded in?

The shop’s main currency – even when the customer paid in another currency (e.g. with WCML).

Affiliates Tree – Multi-Level Affiliate Program for WooCommerce
A customer referral program, commissions across many levels, refund protection, payouts and a partner dashboard in My Account – no coding needed. Try it free for 7 days.

Read next

← All posts

Leave a comment

A question or your own experience? Write it here – we reply personally. Your e-mail address will not be published; your comment appears after approval.

Custom features

Missing a feature? We will build it for your store

Every one of our plugins started with a real store’s need. Tell us what you need – we will adapt an existing plugin or build a new feature, compatible with WooCommerce, HPOS and WPML.

Custom WooCommerce functionality

Partner program

Recommend the plugins you use and earn 20%

Every wpAsist customer gets their own link and discount code. We pay 20% on every sale from your recommendation and another 20% every time that customer renews. Building stores for clients? The developer program pays 33%.

More about the partner program
Przemek Szczęch – developer of wpAsist plugins

Hi, I’m Przemek

I started out in 2009 with affiliate programs, and a year later I made it onto GVO’s list of top-selling partners worldwide. Since 2014 I have been building stores and websites for clients: setting up analytics, improving conversions, connecting systems, driving traffic with SEO and Ads, and turning the numbers into a clear picture of what really sells.

Since 2019 I have been writing my own WooCommerce plugins for the needs of real stores. Missing a feature? Get in touch – my best plugins started with a client’s question.

E-mail: help@wpasist.eu