I use version 2.2.0.0 opencart and I'm trying to make dropdown select for city form (not input). In admin side I edit admin/view/.../sale/order_form.tpl. To make it works I should change validation script for "city" variable. In my case I changed into "city_id". But "protected function validateForm() {" in admin/controller/sale/order.php is not exist. So, I need to find this but I don't know where is it.
Code: Select all
if ((utf8_strlen($value['city']) < 2) || (utf8_strlen($value['city']) > 128)) {
$this->error['address'][$key]['city'] = $this->language->get('error_city');
}
Anybody can help?