Thanks for the fast response. Yes I've been in there for a while but cannot for the life of me get it to follow though to the email. I used your suggestions for a different thread but I couldn't get it working.
I think it might be because rather than put the fields in the $this->info = array(); a new one was created for the custom fields called $this->customer_extra_info = array();
This has been added around line 241
function get_customer_extra_info() {
global $db;
$customer_extra_info_query = "select customers_fax, customers_taxid, customers_lmnum
from " . TABLE_CUSTOMERS . "
where customers_id = '" . (int) $this->customer['id'] . "'";
$customer_extra_info = $db->Execute($customer_extra_info_query);
$this->customer_extra_info = array('fax' => $customer_extra_info->fields['customers_fax'],
'taxid' => $customer_extra_info->fields['customers_taxid'],
'lmnum' => $customer_extra_info->fields['customers_lmnum']);
}
And in the Order Confirmation emails (for example) the following was added to pull the info in the Office Only section but it doesn't come through:
// send additional emails
if (SEND_EXTRA_ORDER_EMAILS_TO != '') {
$this->get_customer_extra_info();
$extra_info=email_collect_extra_info('','', $this->customer['firstname'] . ' ' . $this->customer['lastname'], $this->customer['email_address'], $this->customer['telephone'], $this->customer_extra_info['fax'], $this->customer_extra_info['taxid'], $this->customer_extra_info['lmnum']);
$html_msg['EXTRA_INFO'] = $extra_info['HTML'];
Am I missing something?