I want to set up a "discount directory" for my users where they can search for special offers from merchants. Most merchants want to have a limited time offer, but they won't be all the same ammount of time (some 30 days, some 90 days, etc.)
Is there a way or a hack where I can have the merchant enter an "Expires on:" date in a field and the record will be automagically deleted when that date comes up?
The only other way I can think of doing it is by hand - searching for the current date and deleting each record as it comes due. Too much effort for an ongoing project.
It would be an added bonus to be able to e-mail the merchant letting them know their offer has expired and inviting them back to place another one (or whatever I want to mail them - the e-mail body can be pulled from a text file or an admin area).
Is there a way or a hack where I can have the merchant enter an "Expires on:" date in a field and the record will be automagically deleted when that date comes up?
The only other way I can think of doing it is by hand - searching for the current date and deleting each record as it comes due. Too much effort for an ongoing project.
It would be an added bonus to be able to e-mail the merchant letting them know their offer has expired and inviting them back to place another one (or whatever I want to mail them - the e-mail body can be pulled from a text file or an admin area).