[referrer_user] pulling from cookie

Hi there.

when the [referrer_user direct=”true” display=”user_email”] it pulls information off the cookie, is there a way to make it pull information from the database? or is there another shortcode?

We have a custom page where the user can log in and see who referred them….but if the user changes their email address somehow this breaks and it then shows. See this example

http://screencast.com/t/WYqIQDKyO

Any ideas?

Thanks,

Joel


Comments

11 responses to “[referrer_user] pulling from cookie”

  1. Hi Joel,

    We’ve released an update with new shortcodes [referrer], [affiliates_is_referred] and [affiliates_is_not_referred] and improved things so that these will have the referrer information available during first load. See this documentation page for examples please.

    Cheers

  2. also we tried to comment that line out but it returns blank

  3. Hi George. Thank you so much. I think we are getting closer…

    we are getting an error “PHP Fatal error: Call to undefined function write_log() in /home/happyhealthy/public_html/wp-content/themes/TeamAffiliate/functions.php on line 1245”

    Screenshot here

    http://screencast.com/t/BAmoSabo9e

    Any ideas?

    1. Hi Joel,

      Just remove the write_log() line, George had probably written a helper function named liked that and forgot to remove it.

      Cheers

  4. Hi Joel,

    I see the problem, indeed it gets the cookie value.
    However, you can use this shortcode i’ve created to display the referrer.

    I will also delete your other post, to keep the forum clean from duplicates.

    Kind regards,
    George

  5. I recorded a video example for you

    http://screencast.com/t/tWIonGFnrM

    I think [referrer_user] is not going to the database at all and only looking for the cookie. If the cookie is not there it shows nothing.

    Any way to fix this?

    We have an urgent project we just launched that is broken right now.

    Joel

  6. Thanks George so now we are seeing this problem with all of our users…..even if they don’t change their email. It looks like that if they clear their cookies or access from another device [referrer_user] is not accessing the database…..it’s just looking for a stored cookie.

    Any ideas?

    Joel

    1. Hi Joel,

      It seems that my reply here has gone unnoticed. Quoting “… What we’ll do is look into the possibility to provide this functionality, it’s a good suggestion in any case so an improvement in that sense is welcome anyhow. … Do you have a few days so we can look into it, implement and test? …”

      Cheers

      1. Thanks Kento….we didn’t notice your reply….and yes we would LOVE that functionality and really need it bad. Yes we can wait a few days for sure….the faster the better. 🙂

        1. Great, thanks for your patience and feedback Joel!

  7. Hi Joel,

    This happens because affiliate and user accounts are linked. Therefore, when the user changes email address without updating affiliate record, the affiliate is not linked to a user.

    Try updating affiliate information with the same email.

    Kind regards,
    George

Share