Ok, so I assume then that there is a way to check to see if someone is referred, like a referral code someone enters then? If so, the simplest way would be to have 2 seperate sets of prices in the database, and do something like this when they login:
if ($referral_code == true) {
setcookie("referral_code","true",time()+60*60*24); }
and then on the prices page, check the referall code that is saved, against a valid referall code in the database, and if they match, display referall prices, otherwise, display normal prices.
Or, does the person want a referall page with different prices for each Referral from a seperate Agency, like Agency B Referral gives x price, Agency A referral gives y price, Agency C referall gives n price, and so on? That might be a little harder, but only in the sense that it would require slightly more work to set the prices for each agency and keep them stored.
|
|
Bookmarks