I want to be able to create a “Rate” programatically

I want to be able to create a new rate for a user when they sign up to be an affiliate. I want to be able to do this programatically so I can set the parameters for each user differently. Can I do this?

3 Responses to I want to be able to create a “Rate” programatically

  1. George April 17, 2018 at 12:17 pm #

    Perhaps the hook affiliates_added_affiliate_relation might be useful.
    Can you please give some more details on what you are trying to implement?

    Cheers,
    George

  2. George April 16, 2018 at 9:08 am #

    Is there a hook on when the affiliate relation is created? I need to know when the affiliate relation is created so I can read where in the tree the current affiliate is.

  3. George April 15, 2018 at 4:45 pm #

    Hi George,

    FYI you can set a specific rate per affiliate at the moment, by choosing the affiliate’s name when creating a new rate. IMO this is more flexible because you are able to modify the rate with a few clicks. You can see the details on how to setup rates in our documentation page.

    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