Does someone has the solution to let the script check for at least 1 digit in the address field while registering or checking out?
Maybe is it possible here with preg_match?:
Code: Select all
if ((strlen(utf8_decode($this->request->post['address_1'])) < 3) || (strlen(utf8_decode($this->request->post['address_1'])) > 128)) {
$this->error['address_1'] = $this->language->get('error_address_1');
}
Hope someone can fix it for me.
Thanks.
Best Regards,
Jarno