Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

How to add text to order confirmation e-mail?


69 replies to this topic

#1 Mel

  • Community Member
  • 10 posts
  • Real Name:Mel

Posted 28 September 2002, 04:43

I searched everywhere but I can not find where I can add some text to the order confirmation e-mail sent to the customer.

Can anyone help?

Thanks..........Mel

#2 Ajeh

  • Community Member
  • 6,327 posts
  • Real Name:Linda McGrath
  • Location:Ohio

Posted 28 September 2002, 05:03

Look in /catalog/checkout_process.php for the line:

// lets start with the email confirmation

#3 Mel

  • Community Member
  • 10 posts
  • Real Name:Mel

Posted 28 September 2002, 05:07

Thanks for your help!

Mel

#4 gmcdonald

  • Community Member
  • 1 posts
  • Real Name:Greg McDonaled

Posted 01 September 2004, 02:29

:lol: I have the same question. I found the line referred to in the checkout_process.php file, but now what?

I want to modify the verbage in the email body...

#5 Qihun

  • Community Member
  • 561 posts
  • Real Name:miclosh
  • Location:planet Earth

Posted 01 September 2004, 03:07

Look in catalog/includes/languages/english/checkout_process.php

All text , for every page you can find in languages directory

#6 Phalen

  • Community Member
  • 83 posts
  • Real Name:tanya

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 :( 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.

------------------------------------

how can i do this? i hope someone can help me with this :thumbsup:

#7 Phalen

  • Community Member
  • 83 posts
  • Real Name:tanya

Posted 13 December 2004, 11:48

i get the feeling that i'm being ignored :huh:

#8 databokhandeln

  • Community Member
  • 15 posts
  • Real Name:Karl

Posted 25 December 2004, 09:23

I have the same question. I have look in catalog/checkout_process.php but nothing happend when I edit..

#9 deedeedum

  • Community Member
  • 31 posts
  • Real Name:Frank

Posted 25 December 2004, 20:43

databokhandeln, on Dec 25 2004, 09:23 AM, said:

I have the same question. I have look in catalog/checkout_process.php but nothing happend when I edit..

<{POST_SNAPBACK}>


I can't even find what to edit...

Someone please help.

#10 deedeedum

  • Community Member
  • 31 posts
  • Real Name:Frank

Posted 26 December 2004, 04:33

Someone please help...

#11 Phalen

  • Community Member
  • 83 posts
  • Real Name:tanya

Posted 28 December 2004, 06:34

isnt there anyone out there who can help us?


Quote

how the heck do i add fields to the catalog/checkout_process.php page?

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 digitalhuman

  • Community Member
  • 14 posts
  • Real Name:Victor Angelier
  • Location:NL

Posted 28 December 2004, 08:55

Phalen, on Dec 28 2004, 07:34 AM, said:

isnt there anyone out there who can help us?

<{POST_SNAPBACK}>


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 Phalen

  • Community Member
  • 83 posts
  • Real Name:tanya

Posted 28 December 2004, 11:28

hiya digitalhuman.... thanks for that - i got it working... any idea how i can add the order number to the subject line?
i tried this:

define('EMAIL_TEXT_SUBJECT', STORE_NAME . ' - Order No: ' . EMAIL_TEXT_ORDER_NUMBER . ' ' . $insert_id );

but it didnt work :P it came out like this: 'Magnetic Mattress Covers - Order No: EMAIL_TEXT_ORDER_NUMBER'

then i need to add the customers phone number & email address in the order email....

#14 gameparts

  • Community Member
  • 34 posts
  • Real Name:Charlie Morgan

Posted 14 January 2005, 16:41

Along this same line: How do I add the customer's email address to the information contained in the confirmation email? It shows the delivery and billing address, but no email address. Would also like to see the customer's phone number there too.

Anyone can help?

#15 frankenstein897

  • Community Member
  • 92 posts
  • Real Name:Chris Frank
  • Location:Indianapolis, IN

Posted 15 January 2005, 00:34

gameparts, on Jan 14 2005, 04:41 PM, said:

Along this same line:  How do I add the customer's email address to the information contained in the confirmation email?  It shows the delivery and billing address, but no email address.  Would also like to see the customer's phone number there too.

Anyone can help?

<{POST_SNAPBACK}>


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.
Powered by osCommerce

#16 Phalen

  • Community Member
  • 83 posts
  • Real Name:tanya

Posted 17 January 2005, 10:20

this is what i did:

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 frankenstein897

  • Community Member
  • 92 posts
  • Real Name:Chris Frank
  • Location:Indianapolis, IN

Posted 17 January 2005, 13:25

This looks great! I will give it a try. Thank you!
Powered by osCommerce

#18 gameparts

  • Community Member
  • 34 posts
  • Real Name:Charlie Morgan

Posted 19 January 2005, 20:23

networkcablesonline.com, on Jan 14 2005, 04:34 PM, said:

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.

<{POST_SNAPBACK}>



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 adam71o

  • Community Member
  • 228 posts
  • Real Name:Adam Bradley

Posted 20 January 2005, 17:12

I'm trying to find out how to edit the email sent to the customer when they place an order.

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 databokhandeln

  • Community Member
  • 15 posts
  • Real Name:Karl

Posted 02 February 2005, 17:20

I'm have trying to add customers_dob (Date of Birth) under email but it just be a blank line.

Anyone can help me?