Remove VAT Number field from front office

This commit is contained in:
Abhishek Kumar
2022-06-24 15:30:55 +05:30
parent 9d4a7cc2de
commit 3a6b37d235
18 changed files with 2 additions and 150 deletions

View File

@@ -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)) &&