Lisa Dee Posted December 9, 2004 Posted December 9, 2004 I have seen similar postings, but there has been no resolution to specifically what I am looking for. The "order confirmation email" that the shop owner receives functions well. However, we would like in addition to the billing address of the customer, the telephone number and e-mail address added to the order confirmation. I tried editing the checkout_process.php file, but with no success. Can this file be modified in this manner? Or does the modification have to occur in another file first?
peterr Posted December 9, 2004 Posted December 9, 2004 Hi, Sending the email is done by the tep_mail() function, which is: Defined at: * /admin/includes/functions/general.php -> line 1069 * /includes/functions/general.php -> line 959 The parametsr that are passed to the function are defined as follows: 949 // Parameters: 950 // $to_name The name of the recipient, e.g. "Jan Wildeboer" 951 // $to_email_address The eMail address of the recipient, 952 // e.g. [email protected] 953 // $email_subject The subject of the eMail 954 // $email_text The text of the eMail, may contain HTML entities 955 // $from_email_name The name of the sender, e.g. Shop Administration 956 // $from_email_adress The eMail address of the sender, 957 // e.g. [email protected] 958 959 function tep_mail($to_name, $to_email_address, $email_subject, $email_text, $from_email_name, $from_email_address) { so it is the 4th parametsr that you want to modify, if you want to send additional information. /catalog/checkout_process.php - line 258 tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); is where tep_mail() is called, therefore simply modify the variable $email_order prior to calling the function. For example, you want telephone number, so lets say this is called EMAIL_TELE_NO, the line to add it would be: $email_order .= "\n" . EMAIL_TELE_NO . "\n"; It's that easy. :D Peter
Recommended Posts
Archived
This topic is now archived and is closed to further replies.