How to add referrals manually?

Hello,

I refer again to this post: https://www.itthinx.com/topic/how-to-add-referrals-manually/comment-page-1/

For the “evaluate()” function, it is not clear anywhere how to include the buyer in this process and thus assign them to the affiliate and the referral.

This is about the initial purchase of a new or existing customer. In our case, the purchase process runs via a form that is submitted. This can be used to accept a payment.

After the form has been submitted, it is evaluated and then special functions are activated in the system to check whether the user already exists or not. This is checked by means of the email. If the user is not yet registered, a new user is created. Either way, we then have the user ID, i.e. that of the buyer and not that of the affiliate.

How can this user ID be passed in the “evaluate()” function so that the system links the affiliate to it?

Kind regards


Comments

2 responses to “How to add referrals manually?”

  1. Apologies for the follow-up but I should rephrase to avoid misunderstandings.

    The evaluate method is not interested in the buyer but instead in the action submitted. If there is an applicable affiliate once the action was submitted, a referral will be added for this affiliate.

    Cheers

  2. Hi Bruno,

    The evaluate method is not interested in the buyer but instead in the action submitted. If this action should result in a new referral, it will add it. The buyer is important for affiliates permanent and is handled accordingly based on your description.

    Should you need to keep track of the buyer in the referral too, then you can add a dedicated entry in the data array, or as part of the description argument of the evaluate method.

    Kind regards,
    George

Only authorized members can comment on this topic.

Log in

Share