81f82eae Posted June 6, 2007 Posted June 6, 2007 How would I get osCommerce to also send the customer's email address & phone number in the email, and not just name, address & order? This would highly simplify things, as the majority of our order handling will be through email for the time being, and not the osCommerce backend. We only have 5 products right now, so we'd rather not have to log in every time we get an order email. Site is www.justbeer.cn Cheers!
Nullachtfuffzehn Posted June 6, 2007 Posted June 6, 2007 You need to edit the checkout_process.php around line 250 and add the needed values. Other than this, you might want to define the texts for the new entries at the appropriate language file.
81f82eae Posted June 14, 2007 Author Posted June 14, 2007 Any suggestions on how to do that? 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"; } }
81f82eae Posted June 14, 2007 Author Posted June 14, 2007 The ultimate goal is simply to include the customer's phone number & email address to the emails sent so we can quickly reply to any requests. As I said, we only have 5 products right now, and will probably only have 12-16 total when everything else is in place. Cheers!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.