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?


Comments

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

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

Share