I've seen lots of people discussing this, but no one has asked the same question / answer I'm looking for here, I currently have a store running fine, on checkout the email is required (as you'd expect) - but if the user enters .com32 I get the following message:
‘domain.events’ appears to be a DNS hostname but cannot match TLD against known list
This displays as an alert box - i've discovered that the code for the TLD validation is inside of:
/lib/Zend/Validate/Hostname.php
And have made a copy to local like so:
/app/code/local/Zend/Validate/Hostname.php
And commented out the following:
if (!in_array($this->_tld, $this->_validTlds)) {
// $this->_error(self::UNKNOWN_TLD);
// $status = false;
// break;
}
My problem is, I want the email form field to show the error message (Please enter a valid email address. For example [email protected].), and not an alert.
How would I go about doing this? Is it even possible?