Merge branch 'develop' into gli-2538

This commit is contained in:
vishalsingh.qlo325
2025-05-15 18:59:49 +05:30
40 changed files with 1159 additions and 490 deletions

View File

@@ -380,6 +380,21 @@ class AdminAddressesControllerCore extends AdminController
return parent::renderForm();
}
public function processExport($text_delimiter = '"')
{
$this->fields_list = array_merge($this->fields_list, array(
'email' => array('title' => $this->l('Customer Email')),
'phone' => array('title' => $this->l('Phone')),
'phone_mobile' => array('title' => $this->l('Mobile phone')),
'address1' => array('title' => $this->l('Address (2)')),
'dni' => array('title' => $this->l('Identification Number')),
'vat_number' => array('title' => $this->l('VAT number')),
'other' => array('title' => $this->l('Other')),
));
return parent::processExport($text_delimiter);
}
// public function postProcess()
// {
@@ -547,8 +562,7 @@ class AdminAddressesControllerCore extends AdminController
$customer = Customer::searchByName($email);
if (!empty($customer)) {
$customer = $customer['0'];
$phone = Customer::getPhone($customer['id_customer']);
echo json_encode(array('infos' => pSQL($customer['firstname']).'_'.pSQL($customer['lastname']).'_'.pSQL($customer['company']).'_'.pSQL($customer['id_customer']).'_'.pSQL($phone)));
echo json_encode(array('infos' => pSQL($customer['firstname']).'_'.pSQL($customer['lastname']).'_'.pSQL($customer['company']).'_'.pSQL($customer['id_customer']).'_'.pSQL($customer['phone'])));
}
}
die;