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

#   E-mail validation server side

##

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

Less More

- Posts: 137
- Thank you received: 2
-
-

10 years 2 months ago -  10 years 2 months ago [\#249237](#249237) by [earmaster](/forum/user/35023-earmaster "View earmaster's Profile")  *[E-mail validation server side](/forum/27-checkout/886294-e-mail-validation-server-side#249237 "-- HikaShop version -- : 2.6.0  Hi!  I noticed that 2.6.0 doesn't have server side email validation, and haven't been able to spot the change in any of the change logs for the newer versions either, has this been implemented or is it still just JS / jQuery validation?  And if there is no server validation, would it be possible to add it through a plugin without messing anything in the checkout process up?")* was created by *[earmaster](/forum/user/35023-earmaster "View earmaster's Profile")*

-- HikaShop version -- : 2.6.0

Hi!

I noticed that 2.6.0 doesn't have server side email validation, and haven't been able to spot the change in any of the change logs for the newer versions either, has this been implemented or is it still just JS / jQuery validation?

And if there is no server validation, would it be possible to add it through a plugin without messing anything in the checkout process up?

Last edit: 10 years 2 months ago by [earmaster](/forum/user/35023-earmaster "View earmaster's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4NjI5NC1lLW1haWwtdmFsaWRhdGlvbi1zZXJ2ZXItc2lkZT90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

10 years 2 months ago [\#249253](#249253) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[E-mail validation server side](/forum/27-checkout/886294-e-mail-validation-server-side#249253 "-- HikaShop version -- : 2.6.0  Hi!  I noticed that 2.6.0 doesn't have server side email validation, and haven't been able to spot the change in any of the change logs for the newer versions either, has this been implemented or is it still just JS / jQuery validation?  And if there is no server validation, would it be possible to add it through a plugin without messing anything in the checkout process up?")*

Hi,

We didn't implement it as we didn't feel the need to so far. But it's not difficult to add.
Edit the file administrator/components/com_hikashop/classes/user.php and add the code: Code:

// Check if the fields are correctly filled, if not, return jimport('joomla.mail.helper'); if(empty($this-&gt;registerData-&gt;email) &#124;&#124; (method_exists('JMailHelper', 'isEmailAddress') &amp;&amp; !JMailHelper::isEmailAddress($this-&gt;registerData-&gt;email))){ $app-&gt;enqueueMessage(JText::_('EMAIL_INVALID'), 'error'); return false; }

before the line: Code:

if(empty($this-&gt;registerData-&gt;name)){

let us know how it goes so that we can add it by default.

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

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

Less More

- Posts: 137
- Thank you received: 2
-
-

10 years 2 months ago [\#249317](#249317) by [earmaster](/forum/user/35023-earmaster "View earmaster's Profile")  Replied by *[earmaster](/forum/user/35023-earmaster "View earmaster's Profile")* on topic *[E-mail validation server side](/forum/27-checkout/886294-e-mail-validation-server-side#249317 "-- HikaShop version -- : 2.6.0  Hi!  I noticed that 2.6.0 doesn't have server side email validation, and haven't been able to spot the change in any of the change logs for the newer versions either, has this been implemented or is it still just JS / jQuery validation?  And if there is no server validation, would it be possible to add it through a plugin without messing anything in the checkout process up?")*

So far it seems to be working as it should during the checkout process.

How ever, a minor thing is that the email field is left empty after a failed validation, while that isn't a issue for us it might be something worth looking into adding.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4NjI5NC1lLW1haWwtdmFsaWRhdGlvbi1zZXJ2ZXItc2lkZT90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

10 years 2 months ago [\#249324](#249324) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[E-mail validation server side](/forum/27-checkout/886294-e-mail-validation-server-side#249324 "-- HikaShop version -- : 2.6.0  Hi!  I noticed that 2.6.0 doesn't have server side email validation, and haven't been able to spot the change in any of the change logs for the newer versions either, has this been implemented or is it still just JS / jQuery validation?  And if there is no server validation, would it be possible to add it through a plugin without messing anything in the checkout process up?")*

Hi,

That's actually normal. You want to empty the field if there is an error in it so that the customer can enter it again. It's the role of the JS validation to avoid the submission and mark the field as wrong.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg4NjI5NC1lLW1haWwtdmFsaWRhdGlvbi1zZXJ2ZXItc2lkZT90bXBsPW1hcmtkb3du) 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.047 seconds

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