Hello,
First off thank you ahead of time for any responses given. So on to the question.
I'm working on an Ubercart install and the client would like to be able to offer a user who has already placed 1 order the ability to receive an additional order for free for filling out a follow-up survey, which is shown to them after they log back into the site to make another order. I think I can hook the user login process and check the DB to see if they've only placed 1 order before, which would trigger the survey to show up so I've got a pretty good start on that.
The area that I'm not sure on is how to go about making their order free after they fill out the form. I thought we could possibly e-mail a code and use the coupon Ubercart module, but I want the code to be unique so that they can't share it with other users. Could we possibly enter a huge list of codes in the coupon module and then just pull the next un-used code and deliver it with the e-mail?
Any thoughts or suggestion would be extremely appreciated.
Thanks