dsbpac Posted July 9, 2013 Share Posted July 9, 2013 I just need some help with login in order to wrap my head around how to code this. I have a site that is going to sell a product. Each sale is going to be logged into an db with all the normal info(user, sale id number so on). My question is this... I'm trying to create a 10 level commission system. Any idea's and logic that you would use to create this would be much appriciated. Thanks in advance. Quote Link to comment Share on other sites More sharing options...
Alex Posted July 10, 2013 Share Posted July 10, 2013 Can you explain how you expect this commission system to work? Quote Link to comment Share on other sites More sharing options...
dsbpac Posted July 10, 2013 Author Share Posted July 10, 2013 Okay let me take a step back. Lets start with a 3 tier referral system to keep it simple and so I can gather the logic and build from there. So you have someone that signs up named james. James gets his buddy mike to sign up and mike gets his buddy steve to sign up. So so far we have level 1 (20% commision) James level 2 (10% commision) mike, michelle level 3 (5% commision) steve(mike referral), stacy(mike referral), sarah(michelle referral), sean(michelle referral) The first level is pretty simple since everything is a direct referral. How would I go about doing the second and third levels? I know it's some type of query but I would think you need to make each level into an array. Since I plan to expand this more levels I will need it to ++ count as well correct? Any help and example to get me started would be greatly appriciated Quote Link to comment 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.