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

Retrieve the affiliate id tracked at user registration

by

Tips and Tricks HQ Support Portal › Forums › WP Affiliate Platform › WP Affiliate Tweaks › Retrieve the affiliate id tracked at user registration

Tagged: affiliates, members, user registration

  • This topic has 13 replies, 4 voices, and was last updated 10 years, 11 months ago by admin.
Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • May 24, 2014 at 3:53 am #10890
    yaboi
    Member

    Hello, Great product.

    We are using the plugin to track user registrations sent by an affiliate.

    Once a user is registered he has the ability to purchase a PayPal Digital Products at any time. When a purchase is made, we would like the affiliate to be credited.

    The issue is that the purchase can occur weeks after registration.

    Since the user is registered, is there a way to retrieve the referring affiliate besides getting it from the cookie or IP?

    Our user flow would be:

    1) Affiliate sends user to our site

    2) User registers on site.

    3) Affiliate ID is tracked to that user

    4) User purchases a digital product at a later date

    5) Upon paypal return, the purchase is tracked to the affiliate

    The site is: [http://propertyliq.com]

    It uses this PHP library to allow recurring payments through paypal.

    Any suggestions would be appreciated. Thank you.

    May 24, 2014 at 7:08 am #63223
    admin
    Keymaster

    Are you doing like a custom integration yourself or you will be using standard PayPal button?

    For standard paypal button, you should use the following affiliate tracking integration:

    http://www.tipsandtricks-hq.com/wordpress-affiliate/plain-paypal-button-and-affiliate-plugin-integration-168

    If you are doing a custom integration then I am guessing you are a developer. You should check the following API documentation:

    API – Awarding Commission via HTTP GET or POST

    http://www.tipsandtricks-hq.com/wordpress-affiliate/api-awarding-commission-via-wordpress-hook-501

    May 24, 2014 at 9:31 am #63224
    yaboi
    Member

    Hello,

    thank you for the reply.

    I understand those options, however I do not want to get the affiliate ID from the cookie or IP.

    When a user registers on our site, the affiliate ID gets recorded in the managed lead table. Is that Affiliate ID stored in the database? I would like to access that affiliate id.

    Thank you.

    May 24, 2014 at 10:46 pm #63225
    admin
    Keymaster

    If it goes to the manage leads table then yes that ID is in the database. It will be in the “affiliates_leads_tbl” database table.

    May 24, 2014 at 11:08 pm #63226
    yaboi
    Member

    Thank you.

    Do you have any documentation on how to retrieve and use that database Affiliate ID to track commissions?

    May 25, 2014 at 2:25 am #63227
    yaboi
    Member

    Hello,

    sorry for the multiple messages.

    I assumed that the plugin would have standard features to track affiliates who sent users to sign up on the WordPress site using the standard registration process.

    When an Affiliate sends a user to our site, and that user registers I need to be able to capture the affiliate ID that sent the user.

    Is there a way to do this to record that Affiliate ID in the database? Can the standard WordPress Registration form be used with the Lead Capture table?

    Thanks for all of you help.

    May 27, 2014 at 2:06 am #63228
    admin
    Keymaster

    No one actually asked for this in the past. This is definitely doable and I am interested to add a built-in option for it in the plugin. You are using the standard WordPress user registration form/page correct?

    May 27, 2014 at 8:09 am #63229
    yaboi
    Member

    Actually it turns out my Theme uses a custom registration form, so I was able to use the standard HTTP Post method to capture a user registration as a lead.

    Next I am working to save the Affiliate ID to the WordPress usermeta data. That way the affiliate ID will be tied to the new user with no time limit. A nice way to allow commissions on all future purchases.

    I think that using the standard registration form for lead captures would be a nice feature for your customers. It’s something that I don’t see other affiliate plugins offering either.

    Thanks for your help!

    June 2, 2014 at 5:28 pm #63230
    btati
    Member

    Hi All,

    I was planning to post a very relevant question, hope @admin help me! Here;

    I’m using eMember, eStore and Affiliate plug-ins what I need as follows:

    -The Affiliate sends a user/member

    -The user registers using eMember’s plugin Registration page (free registration)

    – The Affiliate plugin records everything at this time (knows the referral, the member)

    – My product only visible to (eMember) registered members

    – After a while (months or even years) the user may like some of my eStore products (different types of products: Digital download, membership…etc) and purchase.

    – The Affiliate (the referral) should take commission as this is part of his effort

    Since all my plugins are from TT, I think this feature is already configured. If not, please admin let me know how to do this. This is my last part in my homepage and I need to complete it as soon as possible.

    June 2, 2014 at 5:43 pm #63231
    wzp
    Moderator

    Well, the referrals are “cookie based.”

    https://support.tipsandtricks-hq.com/forums/topic/can-we-lock-members-by-affiliate

    So, if you set the cookie life for 10 years, that would work, assuming:

    1. The member never clears their browser cookies.
    2. They keep the same computer & browser for 10 years (not!).
    3. They never click somebody else’s affiliate link; but this behavior can be changed:

      https://support.tipsandtricks-hq.com/forums/topic/first-click-or-last-click

    June 2, 2014 at 6:43 pm #63232
    btati
    Member

    OK! I got your reply. But that actually will not work with my need.

    My website is (monthly/yearly) membership based; once the Affiliate did the job and deliver a customer, I think one of his rights to be sure that he will never be disappointed and he should receive his commissions (monthly or yearly) as long as the member (that he refer) is still active and paying money.

    As I want to create a long term guarantees, and according to your explanation, an affiliate may receive a some commissions for his member (that he refers) but he might lose the commissions if (for example) the member clear his/her cookies; and that does not make sense to me or I’m missing something.

    Yes we used cookies for first time since we need to track the (unknown) member using his IP or whatever, but later on and after registration we knows everything about him why still using cookies and we already know him. Anyway, I’m not a developer and you defiantly knows more than me, all what I need is to fix my issue and achieve my need; so I’m still asking is there any way to achieve my need (any play around solutions). Or my request is something impossible.

    June 3, 2014 at 2:55 am #63233
    admin
    Keymaster

    We have a feature in the affiliate plugin that will lock a user/customer to an affiliate. This can be used to create a hard link between a customer and an affiliate and will reward the affiliate even if he/she deletes the cookies. I believe that will give you the setup you are after. Is my assumption correct?

    June 3, 2014 at 5:44 am #63234
    btati
    Member

    Yes. It seems that will work with my case. But, I could find this feature.

    So, once the user (that sent by an affiliate) registered the plugin will lock this user to this affiliate forever. Accordingly, the affiliate will still get paid as long as the user is paying. The lock feature guarantees this? Is true?

    June 3, 2014 at 11:50 pm #63235
    admin
    Keymaster

    Yes, your assumption is correct. Check my email for the addon that will enable that custom lock feature.

  • Author
    Posts
Viewing 14 posts - 1 through 14 (of 14 total)
  • 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