How to add referrals manually?

Hello,

I refer you to the following topic, as unfortunately I can’t post anything more there: https://www.itthinx.com/topic/how-to-add-referrals-manually/comment-page-1/

It seems to have been closed, although the problem persists.

On August 29, 2024 George said: You’re welcome, even if I haven’t got an exact ETA, it won’t take long.

What exactly does it mean in this context that it won’t take long? Today is September 08 and for us that’s a very long time. Because we can’t use the plugin and have to start.

Unfortunately, it is not possible to study the code ourselves and build our own solutions, because there is a kind of minifying running over it, with which it is no longer possible to understand anything meaningful. Which, by the way, does not really fall under “best practices” for the development of plugins under WordPress.

So if you want to protect your code, then it is simply important to make changes promptly so that the plugins can also be used. We are not talking about a feature request here. It’s just very simply not usable.

Can you please provide us with binding information on when it is possible to create new and permanent referrals with an email?

Thanks


Comments

3 responses to “How to add referrals manually?”

  1. Hey Bruno,

    You’re welcome.
    The way you add referrals hasn’t changed, it’s through the function we have already discussed.
    The only thing you need to add is the affiliates_permanent_current_user_id filter implementation. In the filter’s callback function you need to find the matching user_id by the email you have and return that new user_id.
    Affiliates Permanent will handle first and subsequent purchases because each time it will check whether this email you used in the filter callback function comes from a user with a permanent affiliate assignment.

    Kind regards,
    George

  2. Hi Bruno,

    My sincere apologies for that, normally it shouldn’t take that long but there were other pending updates for our tools that took longer than expected, which delayed this one. Since the update for Affiliates Permanent is still pending, I’ve added the temporary version which you can download here
    affiliates-permanent
    and proceed with the rest of your tasks.

    What is important is to also make sure to update once the final version is out.

    This version includes a filter hook, apply_filters( ‘affiliates_permanent_current_user_id’, $user_id ) which you can use and adjust the user_id, in your case via a valid email for an existing user.

    The reason why we decided to update Affiliates Permanent was that it would be a lot easier for you, otherwise we should describe you the process of building an almost identical clone of the plugin which then you should also maintain. Apart from that, the hook itself wasn’t necessary for the functionality of the plugin, but is only added to support your project, which in turn makes it a feature request.

    Again, you are right to mention the delay, but it was unexpected. If things have gone the normal way, we wouldn’t even talk about the update anymore.

    Please have a look at this modified version and let me know if there’s any other missing piece from your puzzle.

    Kind regards,
    George

    1. Ok George, thanks.

      So what is the best way now to add new referrals to an affiliate now? We need to add the clients to them on 2 ways.

      1. A form to purchase something. Here we have the customers name and email, the product name and the purchase value.
      2. A form to book an appointments. Here we have also the name, email and the service name. Some appointments you have to purchase and some of them are free. But in both cases we need to add the client to the affiliate.

      3. Then we have “first” purchases and “followed” purchases. All of these purchases need to be applied to the corresponding affiliate.

      Thanks, Bruno

Share