MjrGaelic Posted December 2, 2002 Posted December 2, 2002 Hey folks, I would like to be able to add the Company name to my order emails.. Specifically, the email sent to the store owner. I'm looking at order.php and figure I need to make my changes in there but I'm not exactly sure what syntax or where I should make this addition. Can any of you php guru's offer some advice on where to go from here? Thanks, Ryan
MjrGaelic Posted December 4, 2002 Author Posted December 4, 2002 bump Still haven't figured this one out, anyone?
Guest Posted December 4, 2002 Posted December 4, 2002 I only have version 2.2 installed but the approach would be the same since between 2.1 and 2.2 not much may have changed. If you would like to have the company name display in "From" column in your email client instead of the company's email address then you might modify the call to tep_mail() in checkout_process.php so that the email address is in the form of: My Company Name <[email protected]> Notice the "<" and ">" which basically hides the email address and displays the preceeding text. Of course if you would like the company name to appear in the "Subject" column the simply prepend/append. Here is the function call I found in checkout_process.php-- tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, nl2br($email_order), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, ''); I hope this helps. I am a decent PHP developer just looking under the hood and this is what I see. Michael
MjrGaelic Posted December 4, 2002 Author Posted December 4, 2002 Thanks for getting back to me, but this isn't what I'm looking for =).. What I'm looking for is when a customer orders, I want to see the Company the customer belongs to the email that is sent to me. What I get is Customers Name, Address etc... I would like to also see which company they are from.. I have my application top configured so that company name is required in the registration account information but when the email is generated that company name is omitted.
MjrGaelic Posted December 4, 2002 Author Posted December 4, 2002 I think an easier way to get what I'm looking for is to amagamate all of the customers information in thier address book. Hmm.. I'll experiment with that later=)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.