add separate email for waiting list promotion fully paid

This commit is contained in:
Nathan Coad
2018-04-19 09:29:05 +10:00
parent 43a174db79
commit 50c464265d
2 changed files with 35 additions and 3 deletions

View File

@@ -390,7 +390,14 @@ function _booking_promoted_from_waitinglist_email($nid) {
$params['headers']['Bcc'] = BOOKING_EMAIL_DEV_NOTIFY;
}
$message_body = variable_get('booking_email_waitinglistpromotion');
if ($tokens['payment-required'] == 0) {
watchdog('booking_debug', 'This person has fully paid so sending Not sending promoted-from-waitinglist-fullypaid email.');
$message_body = variable_get('booking_email_waitinglistpromotion_fullypaid');
}
else {
$message_body = variable_get('booking_email_waitinglistpromotion');
}
//Use the value of the field if it is an array from a HTML textarea
$message_body = isset($message_body['format']) ? $message_body['value'] : $message_body;
$message_body = token_replace($message_body, $tokens);