If you have a cart where the customer is required to have some sort of approval to browse, view prices or purchase, then when the customer status is updated a generic email goes out that says, "Hey you, your status has been updated." The email has no information in it about who the email is about.
This is the fix for that - uploaded as a mod entitled "Customer Status Update Additional Emails" (just uploaded today) and the instructions here as well since it actually is very simple.
Change the admin file - customers.php
Find around line 79:
if ((int)CUSTOMERS_APPROVAL_AUTHORIZATION > 0 && (int)$_POST['current'] > 0 && $custinfo->RecordCount() > 0) { [/PHP]
replace this:
withPHP Code:$message = EMAIL_CUSTOMER_STATUS_CHANGE_MESSAGE;
$html_msg['EMAIL_MESSAGE_HTML'] = EMAIL_CUSTOMER_STATUS_CHANGE_MESSAGE ;
zen_mail($custinfo->fields['customers_firstname'] . ' ' . $custinfo->fields['customers_lastname'], $custinfo->fields['customers_email_address'],
EMAIL_CUSTOMER_STATUS_CHANGE_SUBJECT , $message, $extra_info['TEXT'], STORE_NAME, EMAIL_FROM, $html_msg, 'default');
PHP Code:if (SEND_EXTRA_ORDER_EMAILS_TO != '') {
$extra_info=email_collect_extra_info('','', $this->customer['firstname'] . ' ' . $this->customer['lastname'], $this->customer['email_address'], $this->customer
['telephone']);
$html_msg['EXTRA_INFO'] = $extra_info['HTML'];
}
$message = EMAIL_CUSTOMER_STATUS_CHANGE_MESSAGE;
$html_msg['EMAIL_MESSAGE_HTML'] = EMAIL_CUSTOMER_STATUS_CHANGE_MESSAGE ;
zen_mail($custinfo->fields['customers_firstname'] . ' ' . $custinfo->fields['customers_lastname'], $custinfo->fields['customers_email_address'],
EMAIL_CUSTOMER_STATUS_CHANGE_SUBJECT , $message, $extra_info['TEXT'], STORE_NAME, EMAIL_FROM, $html_msg, 'default');


Reply With Quote
