1

I am creating a custom user registration page for which I copied registration.phtml to another location and I am working with it.

And for that page I don't want the user to be enforced to enter the password twice.

How do I do that?

5

Magento has perform server side validation for customer registration, so conformation password is must.

Copy this file to your theme with correct folder structure

/app/design/frontend/base/default/template/persistent/customer/form/register.phtml

Then make conformation password field as hidden

<input type="hidden" name="confirmation" title="<?php echo $this->__('Confirm Password') ?>" id="confirmation" />

Then write a script to copy the password field to confirmation field.

jQuery("#password").change(function(){
   jQuery("#confirmation").val(jQuery("#password").val()) 
});
  • Thanks! It turned out the jQuery part could simply be added in the end of the .phtml itself. – george Jun 20 '15 at 6:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.