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 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

  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 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

Only authorized members can comment on this topic.

Log in