system sending wrong affiliate link

For some reason, the links being sent out to new affiliates are using the wrong Affiliate ID. This just started happening and I need to get it fixed as soon as possible.

For example: my last affiliate id is 32, but the link sent to here was

The same thing happened for the pervious Affililate signup

Please help

12 Responses to system sending wrong affiliate link

  1. Eugen Bleck January 8, 2020 at 3:52 pm #

    Hello Craig,

    I must thank you for being patient with us and for being a valued customer. I have gone ahead to fix the issue you had with the wrong ID, apparently you were using [user_id] token, which would not give you the affiliate id. This required an addition of a code snippet;

    add_filter( ‘affiliates_registration_tokens’, ‘example_affiliates_registration_tokens’ );
    function example_affiliates_registration_tokens( $tokens ) {
    if ( isset( $tokens[‘user_email’] ) ) {
    $user = get_user_by( ’email’, $tokens[‘user_email’] );
    if ( $user ) {
    $affiliate_ids = affiliates_get_user_affiliate( $user->ID );
    if ( $affiliate_ids ) {
    $tokens[‘approved_affiliate_id’] = $affiliate_ids[0];
    return $tokens;

    And changing the [user_id] token to [approved_affiliate_id]. In addition to this, the affiliates that are approved can find their affiliate url in the affiliate dashboard once they are logged in.

    Thanks a lot again for your patience and for being a valued customer. I wish you a fun and fruitful day.

    Warm regards,

  2. Eugen Bleck January 7, 2020 at 8:53 am #

    Hi Craig,

    I have seen the email. Allow me some time to check and revert.

    I’ll also go-ahead to create an affiliate, to see the ID which is sent out.

    Have an awesome and fruitful day.

    Warm regards,

  3. Eugen Bleck January 3, 2020 at 11:51 pm #

    Hi Craig,

    Thanks for your help. Please use eugen [at] itthinx [dot] com.


    • musclehammer January 6, 2020 at 7:25 pm #

      OK i added you as admin. let me know if you don’t receive the email. thx

  4. musclehammer January 3, 2020 at 7:01 pm #

    sure. what email do you want to use for this?
    I will add you as an admin.

    Here is the HTML used in the email notification when someone is approved as an Affiliate:

    Thanks for joining our Affiliate Program! You are now an Approved Affiliate and eligible to receive a 25% commission on any sales you refer to us!

    Here is your Affiliate link:

    Give this out to potential customers. If they click on this link and order, our system will automatically make sure you get the credit for the sale!

    If you want to add your coupon code to your link, follow this format: (this will automatically apply the coupon at checkout)

    Below is your affiliate login info:

    Affiliate Dashboard Link:

    Username: [username]

    You can review all of your Affiliate Stats on the Dashboard. If you have any questions on anything, don’t hesitate to reach out to us!

  5. Eugen Bleck January 3, 2020 at 6:49 am #

    Hi Craig,

    Happy new year. Thanks so much for the screenshots. Please, I would love to take a closer look at the notification templates, how are they structured and what shortcode you used in rendering the id. And to achieve this, I would need admin access to the live or staging site.

    Once again thanks for the screenshots and happy new year.

    Kindest regards,

  6. musclehammer January 2, 2020 at 6:14 pm #

    Hey Guys, I accessed the Affiliate Dashboard as you requested and found that the ID listed there matches the ID assigned on my end….

    So that means that only the email notification is sending the wrong ID to the affiliate for some reason.

    See these images:

    Please help!

  7. musclehammer December 30, 2019 at 5:47 pm #

    Eugene… that’s not what I was asking…. let me rephrase the question…

    In order to access the Affiliate Dashboard like you are asking, do I need the Affiliates Username and Password? Or is there a way I can access this info as the system Admin?

    • Eugen Bleck December 30, 2019 at 7:58 pm #

      Hello Craig,

      Thanks for rephrasing your question. In order to access the affiliate dashboard, you would need an Affiliate Account, hence you would need a Username and Password for that affiliate account.

      But what I was referring to in my previous comment was a way for you to visit the manage affiliates page; [siteurl]/wp-admin/admin.php?page=affiliates-admin-affiliates, which would have a list of all the affiliates on the system and you would have the possibility to check the ID column as seen in this screen share (

      I also mentioned the affiliate dashboard so that you could check the affiliate link for that user to see if the ID was different from that seen in the manage affiliates page . In doing so you would see the actual IDs of the affiliates and see if they are different or NOT from the one which was sent out.

      If you visited the affiliate dashboard page as a system admin without an account you would be shown a form to register as one or login. Since you need to be an affiliate to view the dashboard you would need to sign up. Hence your system admin account would now be an affiliate as well.

      Please let me know how it goes.

      Kindest regards,

  8. Eugen Bleck December 28, 2019 at 3:00 pm #

    Hi Craig,

    Thanks for your reply. You can access the affiliate dashboard by;

    Using the link [siteurl]/wp-admin/admin.php?page=affiliates-admin-settings&section=pages to generate the affiliate page if you have not yet generated one. Or create a page and add the shortcode [affiliates_dashboard] to it. Update the page and after which you should be able to visit the affiliate dashboard.

    ## Note: The affiliate dashboard is accessible by an Affiliate user.
    For visitors who are not logged in, it will render the dashboard section that contains the login form and it also renders the registration section

    A] Once you are logged in, please visit [siteurl]/wp-admin/admin.php?page=affiliates-admin-affiliates, and check the ID filter in the columns section. Take note of the ID of the affiliate of interest,
    B] Then please visit the affiliate dashboard by visiting [siteurl]/affiliate-area/; given that you generate the page as explained above or by viewing the page you created above.

    If the IDs in A] and B] are different or the same please let us know.

    kindest regards,

  9. musclehammer December 23, 2019 at 8:00 pm #

    how do I access the Affiliate Dashboard from my WP Admin page?

  10. Eugen Bleck December 23, 2019 at 6:05 pm #

    Hello Craig,

    Happy holidays, I must apologize for the inconvenience. Please to better provide you with the most appropriate solution to your request, I would need more information.

    I would like to know if the ID in Affiliates > Manage Affiliates is different from the ID that appears in the Affiliates Dashboard.

    I look forward to helping you resolve this issue as soon as possible.
    Thanks for using our plugins.

    Warm regards,

We use cookies to optimize your experience on our site and assume you're OK with that if you stay.
OK, hide this message.

Affiliates · Contact · Jobs · Terms & Conditions · Privacy Policy · Documentation · Downloads · Useful Plugins · My Account