Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Page contact us: set up to type 2 times the email address to check it is correct?

Page contact us: set up to type 2 times the email address to check it is correct?

Started by ilmarchez on 11 Apr 2011, 4:15 PM · Views: 1,544

Results 1 to 5 of 5
11 Apr 2011, 4:15 PM
#1
ilmarchez avatar

ilmarchez

Zen Follower

Join Date:
Aug 2009
Posts:
128
Plugin Contributions:
0

Post #1 by ilmarchez

Hi,

I'd like to change the "ccontact us" page on zen cart: the email address should be typed two times by the customer and a script should check that the two email addresses are the same.

In this way the customer can not mistake the email address.

Could you tell me how to do this?
Any suggestion?

Thank you very much for your help!

11 Apr 2011, 4:51 PM
#2
toniscraparoni avatar

toniscraparoni

Zen Follower

Join Date:
Apr 2009
Posts:
158
Plugin Contributions:
0

Post #2 by toniscraparoni

If the customer is logged in when they contact you, their name and email address are pre-loaded into the form. You might want to require extra confirmation for non-logged in only. It would be annoying from a customer standpoint to have to re-type information already there. ;)

But it's definitely possible and probably not that difficult to do. You'd have to add another form field to the contact page template and pick it up in the header for processing, where you can add a condition to only display the confirmation field to those not logged in, as well as one to return an error if the two email addresses don't match.

includes/modules/pages/contact_us/header_php.php
includes/templates/template_default/tpl_contact_us_default.php (move to override directory for your custom template after you modify it)
includes/languages/english/contact_us.php - if you need to add or change definition text, should also be moved to override.

Hope this helps. :)

If you want something done right, you have to get Zenned.
♥-My Zen Cart Mods-♥

12 Apr 2011, 3:36 PM
#4
ilmarchez avatar

ilmarchez

Zen Follower

Join Date:
Aug 2009
Posts:
128
Plugin Contributions:
0

Post #4 by ilmarchez

Yes but that addition is only for the registration form... I'd need it for the contact us form...

12 Apr 2011, 3:37 PM
#5
ilmarchez avatar

ilmarchez

Zen Follower

Join Date:
Aug 2009
Posts:
128
Plugin Contributions:
0

Post #5 by ilmarchez

ToniScraparoni:

If the customer is logged in when they contact you, their name and email address are pre-loaded into the form. You might want to require extra confirmation for non-logged in only. It would be annoying from a customer standpoint to have to re-type information already there. ;)

But it's definitely possible and probably not that difficult to do. You'd have to add another form field to the contact page template and pick it up in the header for processing, where you can add a condition to only display the confirmation field to those not logged in, as well as one to return an error if the two email addresses don't match.

includes/modules/pages/contact_us/header_php.php
includes/templates/template_default/tpl_contact_us_default.php (move to override directory for your custom template after you modify it)
includes/languages/english/contact_us.php - if you need to add or change definition text, should also be moved to override.

Hope this helps. :)

Thank you for the suggestion... Do you have also the code to be put in the pages?

Thank you