81f82eae Posted June 30, 2007 Share Posted June 30, 2007 Any suggestions on how to add telephone number & email address to the email that is sent to us after a customer orders?? I'm not too new to osCommerce, but still rather new to PHP. More specifically: I added this: define('EMAIL_TEXT_EMAIL_ADDY', 'Email Address'); define('EMAIL_TEXT_PHONE_NUMBER', 'Phone Number'); to checkout_process.php on the LANGUAGE Files. That part's no problem. It's just I'm not entirely sure what I'm looking at around line 250 on the other checkout_process.php file. Line 249 & on: if (is_object($$payment)) { $email_order .= EMAIL_TEXT_PAYMENT_METHOD . "\n" . EMAIL_SEPARATOR . "\n"; $payment_class = $$payment; $email_order .= $payment_class->title . "\n\n"; if ($payment_class->email_footer) { $email_order .= $payment_class->email_footer . "\n\n"; } } Somewhere in there I should be adding: $email_order .= EMAIL_TEXT_EMAIL_ADDY . "/n" . $email_order .= EMAIL_TEXT_PHONE_NUMBER ."/n" IF that is right, then where do I add where to find the customer email addy, and how do I add the text box for customer phone number? Quote Link to comment Share on other sites More sharing options...
Guest Posted July 1, 2007 Share Posted July 1, 2007 There is a contribution for this already. Works great, follow instructions, no problems. http://www.oscommerce.com/community/contributions do a search for "email order extras" one result will say this - customer's email and phone in "order process" message click it, download it, use it, it works Quote Link to comment Share on other sites More sharing options...
81f82eae Posted July 1, 2007 Author Share Posted July 1, 2007 It worked fantastically! Cheers! Quote Link to comment Share on other sites More sharing options...
Leo2 Posted July 20, 2010 Share Posted July 20, 2010 This contribution worked for me until I upgraded to RC2a. Now it doesn't work. Any clues? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.