Commissions on coupon discount appears to not adjust rate.

Posted in

Hi, I am using Woo Commerce

I have two sets of products:
1: A digital download
2: A subscription service

Set up as follows:
–Digital download Referral Rate set to 0.25
–Subscription service Referral Rate set to 0.25 (Enable recurring referrals limit/timeout 90 days)

–Default referral calculation = Referral amount method
–Default referral calculation value = Affilaite_WC_Method::product_rates

Upon testing, all is working fine except in the case of Promo Code where the affiliate commission generated is 25% of the pre coupon amount.

An example would be that a 50% off coupon code on a £100 product is allowing the customer to pay £50 for the product but is giving the affiliate £25 commission (instead of £12.5).

My coupons are set up as follow:

–Discount type = Cart % Discount
–Coupon amount = 50

I hope it is something I am doing wrong!

Regards, Lee

17 Responses to Commissions on coupon discount appears to not adjust rate.

  1. October 4, 2013 at 2:13 pm #


    I’ve a question about the VAT on discount and the affiliate fee. I don’t understand the calculation behind it. I used the following paramaters:

    – Coupon discount%= 25%
    – VAT = 21%
    – product price = 59euro incl. VAT
    – referral rate = 0.2 (20%)

    1. ——— answer according to the system ——-

    (product price ex. VAT)-(product price incl. VAT * coupon discount%)*referral rate = affiliate fee

    [(59/1,21)-(59*0.25)]*0.2= 6.80 euro

    2. ——— answer which I have ——-

    (product price ex. VAT)-(product price ex. VAT * coupon discount%)*referral rate = affiliate fee

    [(59/1,21)-(59/1,21*0.25)]*0.2= 7.31 euro

    My questions are:

    1. Why does the system take the coupon discount of the product price including VAT and not ex. VAT?
    2. If I want to have the system to have my answer of 7.31 euro. What paramater do I have to fill in or adjust?

    Hopefully you can answer my questions!

    • antonio October 7, 2013 at 9:46 am #

      when you create a woocommerce coupon, you can select apply it before/after taxes (“Apply before tax” in Woocommerce->Coupons).

  2. Eltorro August 20, 2013 at 6:53 am #

    Oh ok i see, thanks will work it out based on that then

  3. Eltorro August 20, 2013 at 6:18 am #

    Thanks, but why would it do that? Isn’t the point of the coupon that the affiliate get that rewarded to his account?

    • antonio August 20, 2013 at 6:45 am #

      for example:
      If you setup 5% of commissions, and affiliateA has a coupon of 10%,
      he can offer to visitors a discount of 10% if they use her coupon, but he only receives 5% of commission.

  4. Eltorro August 19, 2013 at 11:20 am #

    hi, having a similar issue. I have set coupons to 3% with the code isawamb.

    I did a test purchase on which gives R11.25 off the amount, yet in the backend, the affiliate only got R10.91?

    • antonio August 19, 2013 at 1:53 pm #

      the commission is calculated considering the discounts. In your case: 375 (product price) – 11.25 (discount) = 363.75 * 0.03 = 10.91

  5. leemayne May 16, 2013 at 8:04 pm #

    Hi Kento,

    I seem to be getting double commissions now

    1 At the % of the pre coupon price and
    1 at the correct % of the discounted price.

    The user in this case actually aborted the cart then went back and did it again, So I will wait for another sale to test if it is happening with every purchase.

    • antonio May 17, 2013 at 8:57 am #

      We are testing it and it seems that it works well.
      Maybe it twice purchase order has been the problem.

      If you re-occurs, please let us know, your feedback is welcome.


  6. kento May 16, 2013 at 5:28 pm #

    FYI The update has just been released (you only need to update the integration plugin). Please let me know if you have any further questions on it or need help.

    • leemayne May 16, 2013 at 5:45 pm #

      Thank you Kento that is brilliant, I will let you know that it’s all working OK.

      • kento May 16, 2013 at 5:56 pm #

        That would be great, thanks Lee!

  7. leemayne May 16, 2013 at 7:25 am #

    Hi Kento,

    Did you manage to work out a fix for this ?

    Regards, Lee

    • kento May 16, 2013 at 9:33 am #

      Hi Lee,

      Yes, I’m already preparing an update which will be released today if all testing goes well.


  8. leemayne May 15, 2013 at 1:54 pm #

    Thanks Kento,

    Just for you information I have tried the coupon setting
    Cart % Discount and Product % Discount

    Both have the same effect. Cheers, Lee

    • kento May 15, 2013 at 2:21 pm #

      Thanks Lee, yes that’s in line with what I expected.

  9. kento May 15, 2013 at 12:13 pm #

    Hi Lee,

    Thanks for the detailed info about the setup, judging from that all is set up correctly. I think the issue is rather related to how that method is calculating the commissions when a product rate is set.

    Let me check that and update it if needed so that the case you have explained will work as expected.

We use cookies to optimize your experience on our site and assume you're OK with that if you stay.
OK, hide this message.

Affiliates · Contact · Jobs · Terms & Conditions · Privacy Policy · Documentation · Downloads · Useful Plugins · My Account