Pay Commission on Product Price, Not Price After Coupon Applied

I set up a coupon in Woocommerce that essentially sets the price to $0 in the cart. I wish to pay a commission on the Regular price, not the discounted price of $0. Can this be accomplished without changing the code?

One Response to Pay Commission on Product Price, Not Price After Coupon Applied

  1. George May 3, 2021 at 12:26 pm #

    Hi Warren,

    Welcome to our support forum and many thanks for using our affiliate marketing tool on your site.

    The normal route and commission calculation of Affiliates plugin will always take into account the order total so that when it’s zero a commission based on a percentage will always be zero.
    In your case you either use a fixed amount with a Rate of type Amount or you can use a formula rate and via the formula computer variables filter hook you can get the price of the product in the order and calculate the commission based on this price. For the latter you should check the hook affiliates_formula_computer_variables and using your own callback function you can do the aforementioned calculations.

    Kind regards,
    George

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

Share