Post by Onetdigital » Thu Jan 31, 2019 4:50 am

Hi everyone. Im using opencart 2.3.0.2 and Ajax qickcheckout. We are getting lots of orders with wrong numbers and I saw that on field "telephone" is only min lenght 3 . I would like to correct to 10.

I wonder wich file i need to correct. Need some help.
Website is cool-mango.com

Thanks

Newbie

Posts

Joined
Thu Jan 31, 2019 4:45 am

Post by kestas » Thu Jan 31, 2019 5:11 pm

if you registering on default OC registration page you can find in file: catalog/controller/account/register.php
this:

Code: Select all

if ((utf8_strlen($this->request->post['telephone']) < 3) || (utf8_strlen($this->request->post['telephone']) > 32)) {
			$this->error['telephone'] = $this->language->get('error_telephone');
		}
and replace to this:

Code: Select all

if ((utf8_strlen($this->request->post['telephone']) < 10) || (utf8_strlen($this->request->post['telephone']) > 32)) {
			$this->error['telephone'] = $this->language->get('error_telephone');
		}
But if this is causing by your ajax quick checkout, you should ask developer of this extension...

Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here


Active Member

Posts

Joined
Tue Oct 12, 2010 2:23 am
Who is online

Users browsing this forum: No registered users and 1 guest