Support

Home Forums Event Espresso Premium AffiliateWP integration and per Event commission rate

AffiliateWP integration and per Event commission rate

Posted: November 22, 2017 at 2:13 am


mentoring

November 22, 2017 at 2:13 am

Hello, I purchased Event Espresso and the AffiliateWP integration. I need some events to have a commission rate of 5% and some other events to have a 10% commission rate … Is it possibile to set a per Event Commission rate ?

Thank you


Josh

  • Support Staff

November 22, 2017 at 8:10 pm

Hi there,

The Affiliate WP integration does not have a feature that allows for setting different commission rates for each event. If you have a PHP developer on your team that has a working knowledge of the WordPress plugin API there are hooks that allow for on-the-fly changing the commission rate per event.

One hook that could be used is the affwp_calc_referral_amount filter hook. As an example, there’s a code snippet that shows how to set a special commision amount for the affiliate’s very first referral:

https://github.com/AffiliateWP/affiliatewp-code-snippet-library/blob/master/referrals/modify-first-referral-commission-amount.php

One could write a function to modify the commision amount for a specific event and make use of that same hook.

The support post ‘AffiliateWP integration and per Event commission rate’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Josh 2 years ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!