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?


Comments

One response to “Pay Commission on Product Price, Not Price After Coupon Applied”

  1. George Avatar

    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

Share