At least 1 digit in address field (House no.)
Posted: Thu Jan 24, 2013 5:40 am
Dear reader,
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?:
Or does someone has another solution? Many costumers forget to fill in their house number. It's very annoying.
Hope someone can fix it for me.
Thanks.
Best Regards,
Jarno
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