- Posts: 73
- Thank you received: 0
Registration form got a bug after update
15 years 4 months ago #15451
by benkly
Registration form got a bug after update was created by benkly
Hello,
I updatet Hikashop from 1.4.5 to 1.4.9.
Now I have a strange problem. When I want to register, after filling all required fields, and press the button "register" then I got the message "please enter a valid phone number". But I didn't enter anything in the phone number field and I checked the system and it is not a required field. So what goes wrong here?
Regards, Benny.
I updatet Hikashop from 1.4.5 to 1.4.9.
Now I have a strange problem. When I want to register, after filling all required fields, and press the button "register" then I got the message "please enter a valid phone number". But I didn't enter anything in the phone number field and I checked the system and it is not a required field. So what goes wrong here?
Regards, Benny.
Please Log in or Create an account to join the conversation.
15 years 4 months ago #15466
by nicolas
Replied by nicolas on topic Re: Registration form got a bug after update
Indeed, the field is checked regardless of the required status.
Please edit the file media/com_hikashop/js/hikashop.js and add the line:
if(phoneField.value.length() < 1) return true;
just before the line:
var filter = /[0-9]+/i;
That should fix the problem once you cleared your browser's cache.
Please edit the file media/com_hikashop/js/hikashop.js and add the line:
if(phoneField.value.length() < 1) return true;
just before the line:
var filter = /[0-9]+/i;
That should fix the problem once you cleared your browser's cache.
Please Log in or Create an account to join the conversation.
Time to create page: 0.192 seconds