Guest Posted June 6, 2010 Posted June 6, 2010 Hi all We're using 2.2, Paypal Standard I've been trying to include Customer's phone & Email in the Order Confirmation email. Based on couple of posts it seemed to be pretty easy one with some additions in the "checkout_process.php" file, but whatever changes i make in this file, i cannot see the changes in the email. I also tried to add Order number in the email subject. The only thing i wanted to mention here is that the email comes after the site comes back from Paypal (after payment is done). Pls advice/help. Thanks Suerndra
Guest Posted June 7, 2010 Posted June 7, 2010 I tried this again with enabling "cash on delivery" payment option along with paypal. for orders that were COMPLETED/PAID thru COD, the NEW MODIFIED Email would come, but for PayPal paid orders the default ORDER CONFIRMATION email comes. Is there any other file/place where email is sent, if the payment is done thru Paypal?
Guest Posted June 7, 2010 Posted June 7, 2010 I found the solution. For other payment types we can modify under "\checkout_process.php" file. For Paypal based orders we have to modify the email code in this file \includes\modules\payment\paypal_standard.php Line around 501 in // lets start with the email confirmation /* Comment these lines $email_order = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $order_id . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $order_id, 'SSL', false) . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . strftime(DATE_FORMAT_LONG) . "\n\n"; */ // new lines $email_order = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $order_id . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $order_id, 'SSL', false) . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . strftime(DATE_FORMAT_LONG) . "\n" . EMAIL_TEXT_CUSTOMER_NAME . ' ' . $order->customer['firstname'] . ' ' . $order->customer['lastname'] . "\n" . EMAIL_TEXT_CUSTOMER_EMAIL_ADDRESS . ' ' . $order->customer['email_address'] . "\n" . EMAIL_TEXT_CUSTOMER_TELEPHONE . ' ' . $order->customer['telephone'] . "\n\n" ; ---------------- $new_mail_subject = EMAIL_TEXT_SUBJECT . ' - ' . EMAIL_TEXT_ORDER_NUMBER . ' ' . $order_id; /* comment these lines //tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); // add these new line tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], $new_mail_subject, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); // send emails to other people if (SEND_EXTRA_ORDER_EMAILS_TO != '') { /* comment this line //tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); // New line tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, $new_mail_subject, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); } -------------------- :-)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.