Index: branches/1.0.x/checkout.tpl =================================================================== diff -u -N -r14805 -r14806 --- branches/1.0.x/checkout.tpl (.../checkout.tpl) (revision 14805) +++ branches/1.0.x/checkout.tpl (.../checkout.tpl) (revision 14806) @@ -69,11 +69,11 @@ - - / - @@ -162,6 +162,8 @@
+ + @@ -226,9 +228,15 @@ $('body').bind( 'OnAfterLogin', function ($e, $params) { + // 1. remove login button $('.login-alt').remove(); + + // 2. remove user password controls $('#create-account-password, .badge-optional').remove(); + FormManager.unregisterField('ord', 'UserPassword'); + FormManager.unregisterField('ord', 'VerifyUserPassword'); + // 3. put user e-mail into the form FormManager.setFieldStatus('ord', 'BillingEmail'); FormManager.getField('ord', 'BillingEmail').value = $params['user_email']; } @@ -242,5 +250,6 @@ + \ No newline at end of file