Order form - Add verify email field

mnbg

Avatar: mnbg

2008-08-08 22:41

Hello guys (& maybe also dolls),
First of all I would like to say; I’m really impressed of all the expertise I have seen on this forum. No problem seems to be to complex for this forum. Many thanks!

Now to my current question,
I want to add an additional "verify email" field in the order form. Just to check so the user has typed the correct (same email twice) email address.
Can anyone help me with this?

Best Regards,
Magnus

» Quick.Cart v3.x

MNBG

Makaron

Avatar: Makaron

2008-08-11 09:23

First You have to add field to template of order form.. You can just copy field to insert e-mail address and just change name of it.. After that You have to write one more condition in file core/orders.php in function checkFields( $aForm ). It can look like this:

&& ( $aForm['sEmail'] == $aForm['sEmailCompare'] )

. In this case new field in template should be named "sEmailCompare"

mnbg

Avatar: mnbg

2008-08-11 21:20

Thanks for the answer Makaron!
It´s working, but the pop-up message box (same box that indicating other field errors) will not respond when the field is different. The field error is reported in the next form/step instead?

Thanks,
Magnus

MNBG

beholder

Avatar: beholder

2008-08-12 01:32

that one is made with javascript and it's script is probably just not programmed to react to different e-mail addresses.

QC v3.x

Makaron

Avatar: Makaron

2008-08-12 15:41

Yes if You want this kind of checking these fields You have to write another function in JavaScript..

Back to top
about us | contact