Post by JSSL » 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?:

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');
       }
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

New member

Posts

Joined
Tue Oct 25, 2011 4:49 pm
Who is online

Users browsing this forum: No registered users and 15 guests