Hello,
I have a client who will be placing an ad in several magazines and is planning on using a promotional code for each magazine. They are currently setup through paypal and I was asked to implement something that would allow the customer to access a page on their site and type in the promotional code. If the code matched, then they would be taken to a page where the buy now button is setup with the lower price. They also want to be able to track how many people used each promotional code. Is this something I can do with PHP? I was thinking that it almost be a password match type thing, but I'm not sure where to start. Would I build a table with the promo codes and then build a form for entry and when they enter the code it then checks for a match, if yes, then onward, if no, then error page.
Thanks in advance!
RyanYep PHP is perfectly suited to this kind of thing, as is any web oriented language.
I would probably take things a step further and tie the promo code to the product in the database, to try to ensure that the user doesn't use the same code for different products.Actually, there is only one product. They will get the discount only using the code...How might I go about tracking each code request?
Thanks!
I have a client who will be placing an ad in several magazines and is planning on using a promotional code for each magazine. They are currently setup through paypal and I was asked to implement something that would allow the customer to access a page on their site and type in the promotional code. If the code matched, then they would be taken to a page where the buy now button is setup with the lower price. They also want to be able to track how many people used each promotional code. Is this something I can do with PHP? I was thinking that it almost be a password match type thing, but I'm not sure where to start. Would I build a table with the promo codes and then build a form for entry and when they enter the code it then checks for a match, if yes, then onward, if no, then error page.
Thanks in advance!
RyanYep PHP is perfectly suited to this kind of thing, as is any web oriented language.
I would probably take things a step further and tie the promo code to the product in the database, to try to ensure that the user doesn't use the same code for different products.Actually, there is only one product. They will get the discount only using the code...How might I go about tracking each code request?
Thanks!