Post by zzzz » Sat Mar 06, 2010 1:00 am

How to change the length limit on first and last name?

Newbie

Posts

Joined
Fri Jan 08, 2010 3:28 am

Post by rph » Sat Mar 06, 2010 4:24 am

/catalog/controller/account/create.php
private function validate()

Code: Select all

    	if ((strlen(utf8_decode($this->request->post['firstname'])) < 1) || (strlen(utf8_decode($this->request->post['firstname'])) > 32)) {
      		$this->error['firstname'] = $this->language->get('error_firstname');
    	}

    	if ((strlen(utf8_decode($this->request->post['lastname'])) < 1) || (strlen(utf8_decode($this->request->post['lastname'])) > 32)) {
      		$this->error['lastname'] = $this->language->get('error_lastname');
    	}
Change 32 to whatever you want the character limit to be.

-Ryan


rph
Expert Member

Posts

Joined
Fri Jan 08, 2010 5:05 am
Location - Lincoln, Nebraska
Who is online

Users browsing this forum: No registered users and 33 guests