[Skip to main content](#vessel-content)

#   Registration form got a bug after update

##

- **[benkly](/forum/user/547-benkly "View benkly's Profile")**
- [![benkly's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/547-benkly "View benkly's Profile") Topic Author
- [ Offline](/forum/user/547-benkly)

Less More

- Posts: 73
- Thank you received: 0
-
-

15 years 6 months ago [\#15451](#15451) by [benkly](/forum/user/547-benkly "View benkly's Profile")  *[Registration form got a bug after update](/forum/3-bug-report/15451-registration-form-got-a-bug-after-update#15451 "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 &quot;register&quot; then I got the message &quot;please enter a valid phone number&quot;. 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.")* was created by *[benkly](/forum/user/547-benkly "View benkly's Profile")*

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.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8xNTQ1MS1yZWdpc3RyYXRpb24tZm9ybS1nb3QtYS1idWctYWZ0ZXItdXBkYXRlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

15 years 6 months ago [\#15466](#15466) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Registration form got a bug after update](/forum/3-bug-report/15451-registration-form-got-a-bug-after-update#15466 "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 &quot;register&quot; then I got the message &quot;please enter a valid phone number&quot;. 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.")*

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() &lt; 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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8xNTQ1MS1yZWdpc3RyYXRpb24tZm9ybS1nb3QtYS1idWctYWZ0ZXItdXBkYXRlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.051 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
