You need to edit the:
/includes/classes/order.php
and add the following code above:
PHP Code:
// send additional emails
PHP Code:
// add note to email subject
global $db;
$check_attributes = $db->Execute("SELECT products_options, products_options_values from " . TABLE_ORDERS_PRODUCTS_ATTRIBUTES . " where products_options_id = 1 and products_options_values_id = 16");
if ($check_attributes->RecordCount() > 0) {
$add_subject = ' ' . 'Note Text Here';
}
// send additional emails
Next, you can add the $add_subject on this line:
PHP Code:
zen_mail('', SEND_EXTRA_ORDER_EMAILS_TO, SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT . ' ' . EMAIL_TEXT_SUBJECT . $add_subject . EMAIL_ORDER_NUMBER_SUBJECT . $zf_insert_id,
I placed it right after the main portion of the subject before the order number ... but you can move that around ...