X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Hidden login fields autopopulating on register page, causing validation errors (https://forum.x-cart.com/showthread.php?t=57765)

mgatten 01-27-2011 06:01 AM

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

arupov 12-03-2013 11:50 AM

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?

mgatten 12-03-2013 12:35 PM

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.

arupov 12-03-2013 12:43 PM

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?

learnteach 01-25-2014 11:17 AM

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?

iClerisy 01-26-2014 09:33 PM

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

learnteach 01-29-2014 09:07 AM

Re: Hidden login fields autopopulating on register page, causing validation errors
 
Thanks - got it to work


All times are GMT -8. The time now is 12:21 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.