Ken_Shea Posted January 8, 2014 Posted January 8, 2014 Here are the two original define statements define('EMAIL_TEXT_SUBJECT', 'On Target Sports OnLine '); define('EMAIL_TEXT_ORDER_NUMBER', 'Order Number:'); What I would like to do is include in the email subject line 'EMAIL_TEXT_ORDER_NUMBER' ahead of the EMAIL_TEXT_SUBJECT' Can this be even done and if so help on how. OK, 2nd thought, that's not going to work as what is needed is the order number value there. Output example on the email confirmation subject line "10768 On Target Sports OnLine " Thanks for your help Ken
♥ecartz Posted January 9, 2014 Posted January 9, 2014 Output example on the email confirmation subject line "10768 On Target Sports OnLine "You'd need to change lines in at least two files to do this properly. define('EMAIL_TEXT_SUBJECT', '%s On Target Sports OnLine '); tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], sprintf(EMAIL_TEXT_SUBJECT, $insert_id), $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, sprintf(EMAIL_TEXT_SUBJECT, $insert_id), $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); Changes untested. Always back up before making changes.
Ken_Shea Posted January 9, 2014 Author Posted January 9, 2014 Thank you Matt, I'll give that a try using backed up files just in case :) Ken
Recommended Posts
Archived
This topic is now archived and is closed to further replies.