Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing the subject line in order emails


MaryKH

Recommended Posts

Hi Mary,

 

You're looking for the file catalog/checkout_process.php

 

Find the following towards the end of the file:

  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, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

 

Change the code for the following:

 

  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";
   }
 }

$email_subject = EMAIL_TEXT_SUBJECT . ' ' . $insert_id;

 tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], $email_subject, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

 

Then go to your catalog/includes/languages/english/checkout_process.php file and change the following line :

 

define('EMAIL_TEXT_SUBJECT', 'Order Process');

 

to something like :

 

define('EMAIL_TEXT_SUBJECT', 'Processing Order Number');

 

Hope this helps

 

PhilipH

Link to comment
Share on other sites

I would like to have the order number included in the subject line of the order emails, along with the "order process", can anybody point me in the right direction to do this?

 

Hello Mary,

 

Here is a link to a thread that will help you accomplish what you are trying to do.

Jared Call is responsible for this contribution and it was quite easy to make the changes. This link will also tell you how to put the order number in the update emails.

 

Email Order Number

 

Roy

Roy

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...