I have been monkeying with this area and it's just not posting into the email so I am clearly doing something wrong.
To update/increase the office use only section of the email I altered 2 files
1) email_extras to add a define
2) functions_email to add the line into the email
But nothing shows in the confirm email. I do not want the line going to clients that order.
Here is the code in (I think) the relevant section
function email_collect_extra_info($from, $email_from, $login, $login_email, $login_phone='', $login_fax='', $login_customers_extrafield5='') {
// get host_address from either session or one time for both email types to save server load
if (!$_SESSION['customers_host_address']) {
if (SESSION_IP_TO_HOST_ADDRESS == 'true') {
$email_host_address = @gethostbyaddr($_SERVER['REMOTE_ADDR']);
} else {
$email_host_address = OFFICE_IP_TO_HOST_ADDRESS;
}
} else {
$email_host_address = $_SESSION['customers_host_address'];
}
// generate footer details for "also-send-to" emails
$extra_info=array();
$extra_info['TEXT'] =
OFFICE_USE . "\t" . "\n" .
OFFICE_FROM . "\t" . $from . "\n" .
OFFICE_EMAIL. "\t" . $email_from . "\n" .
(trim($login) !='' ? OFFICE_LOGIN_NAME . "\t" . $login . "\n" : '') .
(trim($login_email) !='' ? OFFICE_LOGIN_EMAIL . "\t" . $login_email . "\n" : '') .
($login_phone !='' ? OFFICE_LOGIN_PHONE . "\t" . $login_phone . "\n" : '') .
($login_fax !='' ? OFFICE_LOGIN_FAX . "\t" . $login_fax . "\n" : '') .
($login_customers_extrafield5 !='' ? OFFICE_FIELD5 . "\t" . $login_customers_extrafield5 . "\n" : '') .
OFFICE_IP_ADDRESS . "\t" . $_SESSION['customers_ip_address'] . ' - ' . $_SERVER['REMOTE_ADDR'] . "\n" .
OFFICE_HOST_ADDRESS . "\t" . $email_host_address . "\n" .
OFFICE_DATE_TIME . "\t" . date("D M j Y G:i:s T") . "\n\n";
Needless to say the thing I am attempting to add is one of the extrafields from the related plugin whose data lies in customer so in same table as some of the other pulls.
Is there another thing I am missing? Probably


Reply With Quote
