How to add text to order confirmation e-mail?
#1
Posted 28 September 2002, 04:43
Can anyone help?
Thanks..........Mel
#2
Posted 28 September 2002, 05:03
// lets start with the email confirmation
#3
Posted 28 September 2002, 05:07
Mel
#4
Posted 01 September 2004, 02:29
I want to modify the verbage in the email body...
#5
Posted 01 September 2004, 03:07
All text , for every page you can find in languages directory
#6
Posted 06 December 2004, 13:52
um... glad i found this as it is what i'm looking for... only thing now... how the heck do i add fields to the catalog/checkout_process.php page?
i am no good at php
------------------------------------
1. i need to add the STORE_NAME & the EMAIL_TEXT_ORDER_NUMBER to the Subject line of the email sent.
2. i need to add the customers phone number in the order.
3. i need to add the customers email address in the order email.
------------------------------------
how can i do this? i hope someone can help me with this
#7
Posted 13 December 2004, 11:48
#8
Posted 25 December 2004, 09:23
#9
Posted 25 December 2004, 20:43
databokhandeln, on Dec 25 2004, 09:23 AM, said:
I can't even find what to edit...
Someone please help.
#10
Posted 26 December 2004, 04:33
#11
Posted 28 December 2004, 06:34
Quote
i am no good at php sad.gif here's what i need to do:
------------------------------------
1. i need to add the STORE_NAME & the EMAIL_TEXT_ORDER_NUMBER to the Subject line of the email sent.
2. i need to add the customers phone number in the order.
3. i need to add the customers email address in the order email.
------------------------------------
#12
Posted 28 December 2004, 08:55
Phalen, on Dec 28 2004, 07:34 AM, said:
It should add the name of the store to the subject when you change this in
the checkout_process.php file:
define('EMAIL_TEXT_SUBJECT', 'Order Process '. STORE_NAME);
#13
Posted 28 December 2004, 11:28
i tried this:
define('EMAIL_TEXT_SUBJECT', STORE_NAME . ' - Order No: ' . EMAIL_TEXT_ORDER_NUMBER . ' ' . $insert_id );
but it didnt work
then i need to add the customers phone number & email address in the order email....
#14
Posted 14 January 2005, 16:41
Anyone can help?
#15
Posted 15 January 2005, 00:34
gameparts, on Jan 14 2005, 04:41 PM, said:
Anyone can help?
Did you guys ever figure this out? I need to add the customer email address and phone number to the Order Process email as well.
#16
Posted 17 January 2005, 10:20
catalog/checkout_process.php: (from the line '//lets start.....'
// lets start with the email confirmation
$email_order = STORE_NAME . "\n" .
EMAIL_SEPARATOR . "\n" .
EMAIL_TEXT_ORDER_NUMBER . ' ' . $insert_id . "\n" .
EMAIL_TEXT_INVOICE_URL . ' ' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $insert_id, 'SSL', false) . "\n" .
EMAIL_TEXT_DATE_ORDERED . ' ' . strftime(DATE_FORMAT_LONG) . "\n\n";
if ($order->info['comments']) {
$email_order .= tep_db_output($order->info['comments']) . "\n\n";
}
$email_order .= EMAIL_TEXT_PRODUCTS . "\n" .
EMAIL_SEPARATOR . "\n" .
$products_ordered .
EMAIL_SEPARATOR . "\n";
for ($i=0, $n=sizeof($order_totals); $i<$n; $i++) {
$email_order .= strip_tags($order_totals[$i]['title']) . ' ' . strip_tags($order_totals[$i]['text']) . "\n";
}
if ($order->content_type != 'virtual') {
$email_order .= "\n" . EMAIL_TEXT_DELIVERY_ADDRESS . "\n" .
EMAIL_SEPARATOR . "\nemail: " .$order->customer['email_address']. "\nTelephone: ".$order->customer['telephone']."\n".
tep_address_label($customer_id, $sendto, 0, '', "\n") . "\n";
}
$email_order .= "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" .
EMAIL_SEPARATOR . "\nemail: " .$order->customer['email_address']. "\nTelephone: ".$order->customer['telephone']."\n".
tep_address_label($customer_id, $billto, 0, '', "\n") . "\n\n";
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";
}
}
tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT." order:".$insert_id, $email_order,
STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
catalog/includes/languages/english/checkout_process.php: (everything)
<?php
/*
$Id: checkout_process.php,v 1.26 2002/11/01 04:22:05 hpdl Exp $
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2002 osCommerce
Released under the GNU General Public License
*/
define('EMAIL_TEXT_SUBJECT', ' - Your Order from ' . STORE_NAME);
define('EMAIL_TEXT_ORDER_NUMBER', 'Order Number:');
define('EMAIL_TEXT_INVOICE_URL', 'Detailed Invoice:');
define('EMAIL_TEXT_DATE_ORDERED', 'Date Ordered:');
define('EMAIL_TEXT_PRODUCTS', 'Products');
define('EMAIL_TEXT_SUBTOTAL', 'Sub-Total:');
define('EMAIL_TEXT_TAX', 'Tax: ');
define('EMAIL_TEXT_SHIPPING', 'Shipping: ');
define('EMAIL_TEXT_TOTAL', 'Total: ');
define('EMAIL_TEXT_DELIVERY_ADDRESS', 'Delivery Address');
define('EMAIL_TEXT_BILLING_ADDRESS', 'Billing Address');
define('EMAIL_TEXT_PAYMENT_METHOD', 'Payment Method');
define('EMAIL_SEPARATOR', '------------------------------------------------------');
define('TEXT_EMAIL_VIA', 'via');
?>
this will result in the following:
Subject: - Your Order from Costless Vitamin order:15 (subject line of email)
Costless Vitamin
------------------------------------------------------
Order Number: 15
Detailed Invoice:
https://www.costlessvitamin.com/catalog/acc...php?order_id=15
Date Ordered: Wednesday 12 January, 2005
Products
------------------------------------------------------
1 x Wobenzym N 800 Tablets (wobenzym800) = $77.99
Coating Clear Coating
------------------------------------------------------
Sub-Total: $77.99
UPS Ground (UPS): $7.99
Total: $85.98
Delivery Address
------------------------------------------------------
email: customers@emailaddress.com
Telephone: 0800-customers-phone-no-555
Customers Name
13422 Wright Dr
Guerneville, CA 94432
United States
Billing Address
------------------------------------------------------
email: customers@emailaddress.com
Telephone: 0800-customers-phone-no-555
Customers Name
13422 Wright Dr
Guerneville, CA 94432
United States
Payment Method
------------------------------------------------------
Payflow Pro
hope this helps!
#17
Posted 17 January 2005, 13:25
#18
Posted 19 January 2005, 20:23
networkcablesonline.com, on Jan 14 2005, 04:34 PM, said:
Yes, here is how to add your customer email and phone number to the order email:
My solution is:
\catalog\checkout_process.php orig.
CODE
if ($order->content_type != 'virtual') {
$email_order .= "\n" . EMAIL_TEXT_DELIVERY_ADDRESS . "\n" .
EMAIL_SEPARATOR . "\n" .
tep_address_label($customer_id, $sendto, 0, '', "\n") . "\n";
}
\catalog\checkout_process.php modif.
CODE
if ($order->content_type != 'virtual') {
$email_order .= "\n" . EMAIL_TEXT_DELIVERY_ADDRESS . "\n" .
EMAIL_SEPARATOR . "\n" .
EMAIL_TEXT_MAIL . $order->customer['email_address'] . "\n" .
EMAIL_SEPARATOR . "\n" .
tep_address_label($customer_id, $sendto, 0, '', "\n") .
EMAIL_TEXT_PHONE . $order->customer['telephone']. "\n";
}
In more, the following lines, must be added
\catalog\includes\languages\(your language)\checkout_process.php
CODE
define('EMAIL_TEXT_MAIL', 'Email: ');
define('EMAIL_TEXT_PHONE', 'Telephone: ');
#19
Posted 20 January 2005, 17:12
Specifically, I need to add a line right under the "order number" line at the top of the email which includes a hyperlink. something like...
"Thanks for your order. Now the only thing left to do is design your project. CLICK HERE TO DESIGN YOUR LAYOUT."
Thanks in advance!
#20
Posted 02 February 2005, 17:20
Anyone can help me?














