I-AM-OBODO Posted January 6, 2015 Share Posted January 6, 2015 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 Quote Link to comment https://forums.phpfreaks.com/topic/293701-reward-logic/ Share on other sites More sharing options...
ginerjm Posted January 6, 2015 Share Posted January 6, 2015 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? Quote Link to comment https://forums.phpfreaks.com/topic/293701-reward-logic/#findComment-1501904 Share on other sites More sharing options...
I-AM-OBODO Posted January 7, 2015 Author Share Posted January 7, 2015 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 Quote Link to comment https://forums.phpfreaks.com/topic/293701-reward-logic/#findComment-1501957 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.