Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Hidden login fields autopopulating on register page, causing validation errors

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-27-2011, 06:01 AM
 
mgatten mgatten is offline
 

Senior Member
  
Join Date: Jan 2004
Posts: 158
 

Default Hidden login fields autopopulating on register page, causing validation errors

I've just upgraded to 4.4.2 from an ancient, ancient version.

I like how the username/password fields are hidden until a person checks the "Create Account" checkbox. But it causes a problem: If the user's browser sees the field names on there and has a username and/or password saved for some other site that uses the same field names it will try to be "helpful" by filling out one or both of those fields even though they aren't visible to the user.

Then the user submits their contact info without creating an account and gets an error message saying that their username or password is invalid.

Not seeing any such fields, they leave.

I thought about explicitly setting these to null using a javascript onLoad event, but looking at the .tpl file it looks like a lot of trouble has been gone to in order to populate them in certain circumstances.

I had a similar problem on my old system, but the fields were always visible so it wasn't a big deal. But the fact that it was happening at all on such an old version tells me that it's almost certainly a problem that a lot of you have dealt with.

Anybody find a solution?

Marshall
__________________
--------
http://www.miracleblanket.com Version 4.4.2
http://www.spot4tots.com Version 4.4.2
http://www.certifiedmiracles.com Version 4.4.2
Reply With Quote
  #2  
Old 12-03-2013, 11:50 AM
 
arupov arupov is offline
 

Newbie
  
Join Date: Sep 2009
Posts: 2
 

Default Re: Hidden login fields autopopulating on register page, causing validation errors

Marshall, did you ever find a solution? I have the same problem with v 4.5.5
Username field is always populated even if "Create account for this Username" is unchecked. Do you know what to edit so I can remove the javascript?
__________________
X-Cart version 4.5.5
Reply With Quote
  #3  
Old 12-03-2013, 12:35 PM
 
mgatten mgatten is offline
 

Senior Member
  
Join Date: Jan 2004
Posts: 158
 

Default Re: Hidden login fields autopopulating on register page, causing validation errors

No. It's maddening. Since it's a browser "feature" it seems to be out of the cart's control. Still, seems like there should be a way to override it.
__________________
--------
http://www.miracleblanket.com Version 4.4.2
http://www.spot4tots.com Version 4.4.2
http://www.certifiedmiracles.com Version 4.4.2
Reply With Quote
  #4  
Old 12-03-2013, 12:43 PM
 
arupov arupov is offline
 

Newbie
  
Join Date: Sep 2009
Posts: 2
 

Default Re: Hidden login fields autopopulating on register page, causing validation errors

I am still looking for the template with the javascript and when/if I find it, I will try to modify it so it would ignore the username field if the "Create account" box is not checked. We can also try to add autocomplete="off" attribute to the <input> tag of the field.
Do you know what/where is the .tpl file with that form?
__________________
X-Cart version 4.5.5
Reply With Quote
  #5  
Old 01-25-2014, 11:17 AM
 
learnteach learnteach is offline
 

Member
  
Join Date: Sep 2010
Posts: 25
 

Default Re: Hidden login fields autopopulating on register page, causing validation errors

I have the same problem: Can not find the template that manages this section of the hidden fields that are auto filled by browser.

I was told: You can add autocomplete="off' to the <form> tag . That will fix this.

Hey Xcart can you give us some ideas to help?
__________________
4.4.0
Reply With Quote
  #6  
Old 01-26-2014, 09:33 PM
  iClerisy's Avatar 
iClerisy iClerisy is offline
 

Senior Member
  
Join Date: Mar 2010
Posts: 103
 

Default Re: Hidden login fields autopopulating on register page, causing validation errors

Hey,

I discover that autocomplete="off' is already added to the input element for latest version however or old version here is the path of tpl file.

skin/common_files/modules/One_Page_Checkout/profile/account_info.tpl
__________________
Dhvanit Upadhyay
Professional X-cart Service | Former Partner X-cart.es
Skype : dhvanit.upadhyay
https://www.linkedin.com/in/dhvanit/
Reply With Quote

The following user thanks iClerisy for this useful post:
qualiteam (01-29-2014)
  #7  
Old 01-29-2014, 09:07 AM
 
learnteach learnteach is offline
 

Member
  
Join Date: Sep 2010
Posts: 25
 

Default Re: Hidden login fields autopopulating on register page, causing validation errors

Thanks - got it to work
__________________
4.4.0
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:33 AM.

   

 
X-Cart forums © 2001-2020