Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do I add extra text to the order confirmation E-mail?


beckysmith

Recommended Posts

I've searched and found part of the answer but, how do I add extra text to the order confirmation E-mails? I've found this in the checkout_process.php page - and notice that it's allowing comments to be added to the E-mail... but how do I put text into comments field and make this active to be sent out with the E-mails?

 

I basically just need to add 2-3 lines of text with every confirmation E-mail sent out....

 

//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) . "nn";

if ($order->info['comments']) {

$email_order .= $order->info['comments'] . "nn";

} $email_order .= EMAIL_TEXT_PRODUCTS . "n" .

EMAIL_SEPARATOR . "n" .

$products_ordered .

EMAIL_SEPARATOR . "n";

 

 

Or am I wrong? Is there a simpler way just to add 2-3 lines of text to every order confirmation e-mail?

Link to comment
Share on other sites

See if this will help you.

 

Q. How do you customize the email that is sent out when an order is placed?

 

 

Ans. catalogcheckout_process.php -- it establishes the mail

variables and sets their values.

 

Somewhere after the section that reads,

"// lets start with the email confirmation," you will

want to add something to the effect of:

 

$email_order .= "n" . "You should have it as soon as we can plug the leaks :-)"; :P

Link to comment
Share on other sites

//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) . "nn";

if ($order->info['comments']) {

$email_order .= $order->info['comments'] . "nn";

} $email_order .= EMAIL_TEXT_PRODUCTS . "nn" .

$email_order .= "Your 2 or 3 lines of text goes here...rnMake sure to make a new line usingrn not just nEasy ;?) rnrn" .

EMAIL_SEPARATOR . "n" .

$products_ordered .

EMAIL_SEPARATOR . "n";

Link to comment
Share on other sites

  • 2 weeks later...

If it shows up twice only use....

 

if ($order->info['comments']) {

$email_order .= $order->info['comments'] . "nn";

}

$email_order .= "Your 2 or 3 lines of text goes here...rnMake sure to make a new line usingrn not just nEasy ;?) rnrn" .

$products_ordered .

EMAIL_SEPARATOR . "n";

Jared Geesey

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...