Automating a sequential coupon code based on parameter
I have a registration form that I created using ecart and I want to create a coupon for a registration discount. The catch is that I need to have a different coupon code generated automatically in sequence and only if a check box is selected and a text field filled in.
The basic premise is that two people would register each being friends, because of that they would each get a 25% discount on their registration. The coupon code might be something like NAHDN1a paired with NAHDN1b that would be generated if the text field matched.
The text box would have to be a parameter because that will contain the name of the friend registrant so both would get the discount.
Is it possible to do this using ecart's coupon capabilities or am I asking to much?