Jump to content

Recommended Posts

I have a referal system. I want to have a reward for referring someone. I allocate a certain amount for the referal system (lets say $50). At level 1, nothing is given until you start referring people and the person(s) starts using the program.

On level 2 you earn 9%($4.5 of $50)
on level 3 you earn 27%
On level 4 you earn 64%


How do i go about this bearing in mind that a level 2 or 3, eventually becomes level 1 if he starts inviting people and those he invited starts using the program.


Thanks
 

Link to comment
https://forums.phpfreaks.com/topic/293701-reward-logic/
Share on other sites

You have a table to store users who sign up to become referrers. When you decide that they have reached a certain level you post that value to their "referrer" record. And so on. I assume that you rate them at a certain level for all people that they refer or for all products that they can be referring. If not, you have to create a referrer record for each user for each category (not level) of referral they make in the same fashion.

 

Obviously the referrers must login before referring someone. Periodically you go through your table (monthly?) and look for referrals made since the last-paid date on the record and report out (or store) the referrer's name/id and the amount to be paid this time and post that record with the current date as the last-paid date. You might also save the total amount earned over time.

 

Am I close? Does this make sense?

Link to comment
https://forums.phpfreaks.com/topic/293701-reward-logic/#findComment-1501904
Share on other sites

You have a table to store users who sign up to become referrers. When you decide that they have reached a certain level you post that value to their "referrer" record. And so on. I assume that you rate them at a certain level for all people that they refer or for all products that they can be referring. If not, you have to create a referrer record for each user for each category (not level) of referral they make in the same fashion.

 

Obviously the referrers must login before referring someone. Periodically you go through your table (monthly?) and look for referrals made since the last-paid date on the record and report out (or store) the referrer's name/id and the amount to be paid this time and post that record with the current date as the last-paid date. You might also save the total amount earned over time.

 

Am I close? Does this make sense?

Thanks. Will give it a shot

Link to comment
https://forums.phpfreaks.com/topic/293701-reward-logic/#findComment-1501957
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.