Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

Affiliate ID/field included in registration page to manually set the affiliate

by

Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › Affiliate ID/field included in registration page to manually set the affiliate

Tagged: affiliate code, WP Affiliate

  • This topic has 18 replies, 4 voices, and was last updated 9 years, 2 months ago by woodybongard.
Viewing 4 posts - 16 through 19 (of 19 total)
← 1 2
  • Author
    Posts
  • October 16, 2014 at 4:36 am #59896
    cyxou
    Member

    Got an idea! What if we uncheck the Automatically Create Affiliate Account checkbox in WP User Settings and create affiliate account manually from the filter after the standard registration is successfully completed? If so, what function do I need for this?

    October 16, 2014 at 10:01 pm #59897
    admin
    Keymaster

    That should work fine.

    Here is an example code block to show you how you could create an affiliate entry from your function:

    $user_id= "2";//TODO - set the correct WP user ID value
    $user_info = get_userdata($user_id);
    $fields = array();
    $fields['refid'] = $user_info->user_login;
    $fields['pass'] = $user_info->user_pass;
    $fields['email'] = $user_info->user_email;
    $fields['firstname'] = $user_info->first_name;
    $fields['lastname'] = $user_info->last_name;
    $fields['date'] = (date ("Y-m-d"));
    $fields['commissionlevel'] = get_option('wp_aff_commission_level');
    $fields['referrer'] = wp_affiliate_get_referrer();//TODO - set the referrer value here.
    wp_aff_create_affilate_using_array_data($fields);

    October 17, 2014 at 1:52 am #59898
    cyxou
    Member

    Thanks a lot. I’ll give it a try an get back to you with the results ))

    February 22, 2016 at 12:41 am #59899
    woodybongard
    Member

    Did this ever work? I’m having the same problem

  • Author
    Posts
Viewing 4 posts - 16 through 19 (of 19 total)
← 1 2
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ