Using end user entered promo code to redirect to promo product page
Posted on 2010-04-11
Greetings, this seems like such an easy thing to do, so i must be missing something...
I am developing a website that caters to schools athletic departments, each school will have its own category in an online shopping cart system (these categories will be hidden and only accessible thru direct URL)
I need to build a form that allows the end user to enter a "promo" code, the form would then reference a list, either xml or some other method. and with a match the end user would be redirected to the proper page....
so for example the user lands on www.mydomain.com and is presented with an option to enter their promo code.
they enter their code and the form checks with a list to see if there is a match, if there is a match the user is redirected to that promo code's specific category URL
The category ID and promo codes are not the same.... for example our categories have numbers assigned to them, but the promo codes will be words...
so to sum it up, when a user enters a promo code of "wolverines" they would be taken to the wolverines category page of www.mydomain.com/cart/catID?=1001
Thank you in advance for any advice!