redpillcoders
redpillcoders

Reputation: 93

Prestashop 1.7.7 E-Mail Input Validation for Domain Name

i looking for a solution in Prestashop for correct E-Mail Input field format validation.

A normal email [email protected] will check for the @ symbol but not for domain dot(!) com.

So i can write into the checkout email field as guest: xyz@domain but the dot and com missing.

Somebody have some idea for that?

Thanks

Akos

Upvotes: 1

Views: 497

Answers (1)

gennaris
gennaris

Reputation: 1612

The email validity check is handled in /classes/Validate.php into the

public static function isEmail($email)
{
}

method.

You can consider editing or overriding it to suit your needs.

Upvotes: 0

Related Questions