by jaramin » Fri Feb 08, 2008 3:46 am
Hello!
I'm customizing the registration and manual payment templates to handle different kinds of payment (cash, check, credit card with in house system), I've altered the form and validation without any problem, but now and I've come to a point where I'm a bit confused as to how I should proceed next. Here's my problem :
Once the user has completed his registration (.../schedConf/registration) he is sent to the registration payment page (...schedConf/register). My problem is that I need a confirmation page, so that the registration isn't comitted yet and on which the user can presse a back button to return to the registration page and correct any mistakes. I can see two approaches to the problem :
1. Change some inner working code so that the registration isn't committed yet when I submit the form on the registration page. That way I could use the registration payment page to display a confirmation dialog, a "back" button that sends the user back to the registration form and a "proceed" button that would commit the registration.
2. Change some code so that the registration form is sent to itself (and some flag gets raised) so that it acts as a confirmation page on which I would now show a "back" button that would re-send the form to itself agains (lower the flag) and a "proceed" button that would commit the registration and send the user to the registration payment page as normal.
Which of the two approaches should I follow? I would value an easy way over a "clean" way as this site will only last for the summer. And of course, I would appreciate greatly if someone could give me a hint or two as to what files I'd need to modify, and some code tidbits to illustrate where and how changes need to be done.
Thank you!