| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Hidden login fields autopopulating on register page, causing validation errors | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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 |
|||||||
#2
|
|||||||
|
|||||||
![]() 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 |
|||||||
#3
|
|||||||
|
|||||||
![]() 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 |
|||||||
#4
|
|||||||
|
|||||||
![]() 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 |
|||||||
#5
|
|||||||
|
|||||||
![]() 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 |
|||||||
#6
|
|||||||||
|
|||||||||
![]() 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/ |
|||||||||
|
#7
|
|||||||
|
|||||||
![]() Thanks - got it to work
__________________
4.4.0 |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|