Remove VAT Number field from front office
This commit is contained in:
@@ -36,7 +36,7 @@ class AdminAddressesControllerCore extends AdminController
|
||||
{
|
||||
$this->bootstrap = true;
|
||||
$this->required_database = true;
|
||||
$this->required_fields = array('company','address2', 'postcode', 'other', 'phone', 'phone_mobile', 'vat_number', 'dni');
|
||||
$this->required_fields = array('company', 'address2', 'postcode', 'other', 'phone', 'phone_mobile', 'dni');
|
||||
$this->table = 'address';
|
||||
$this->className = 'Address';
|
||||
$this->lang = false;
|
||||
@@ -217,13 +217,6 @@ class AdminAddressesControllerCore extends AdminController
|
||||
'col' => '4',
|
||||
'hint' => $this->l('Invalid characters:').' <>;=#{}'
|
||||
);
|
||||
$temp_fields[] = array(
|
||||
'type' => 'text',
|
||||
'label' => $this->l('VAT number'),
|
||||
'col' => '2',
|
||||
'name' => 'vat_number',
|
||||
'required' => in_array('vat_number', $required_fields)
|
||||
);
|
||||
} elseif ($addr_field_item == 'lastname') {
|
||||
if (isset($customer) &&
|
||||
!Tools::isSubmit('submit'.strtoupper($this->table)) &&
|
||||
|
||||
Reference in New Issue
Block a user