EDD Integration – Affiliate Commission Per Product, Not Per Cart Total – Possible?

Hello Kento,

We are using EDD and Aff Pro and are trying to figure out a way to credit affiliates “per product” rather than “per cart total”. The reason is that we are a plugin marketplace and only desire to credit affiliates for certain products (our own plugins and not 3rd party vendor plugins).

From what we can tell, affiliate commissions are based on the cart total and not broken out by individual product.

Can you think of a way that we can accomplish this? We are comfortable with code, but wonder if you can give us some insight on how we could best accomplish this.

Thanks in advance for any help you can provide.

Posted in
Tags

Comments

4 responses to “EDD Integration – Affiliate Commission Per Product, Not Per Cart Total – Possible?”

  1. awarner20 Avatar
    awarner20

    Hi Kento,

    Apologies for the late reply, but thank you so much for your attention and assistance. We really appreciate it.

    I’ve handed this off to my partner who is our Lead Developer and he will utilize your code as a guide.

    We decided to credit affiliates for all products, but in the case of third party vendors, the commission will be based off of our share of the vendor’s commission and we also have the added complexity of having price variations per product as well.

    We’ll be sure to post back here in the coming weeks with our results.

    Thanks again for your help!

    1. Great, let me know if you need any further advice 🙂

  2. Here’s the plugin : https://github.com/itthinx/affiliates-product-rates-skeleton

    You will need to fill in a few things, see lines marked with @todo.

    The general idea:

    Based on the CPT used for products (‘download’ in the case of EDD), it will add a meta box on the product page where you can input a product rate.

    The plugin provides a custom referral method which you need to select in Affiliates > Settings (it can also be used on individual affiliates alone instead).

    With the basics specific to the Affiliates Pro plugin prepared it should be quite easy to apply it to product based commission rates for EDD or any other system.

    Please let me know if you have any questions.

  3. Hi,

    Sure, I’ll provide a skeleton plugin which you can adapt.

Share