Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Order Process email modification


proctor

Recommended Posts

The email that gets sent out when an order gets completed simply says: "Order Process"

 

I want to change this to say: "shop_name Order Confirmation order#"

 

Can someone tell me how to do this??

 

Thanks.

 

Rob

Rob Proctor

Marine.com LLC

Link to comment
Share on other sites

Not 100% sure but I've found the first piece. Modify the following file with what you would like to be sent...

 

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

 

And modify the following line...

 

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

 

I believe you would put something like...

 

. store_name . ' Order Confirmation ' . unknownfororder# .

 

I haven't found the command for the Order Number but I am searching. I have NOT done any testing on this so please conduct your own tests. If you happen to take this and figure out the rest before I do, please let me know as well.

 

Thanks - TECH-OPS.net

Link to comment
Share on other sites

Jamy,

 

Thanks for your reply. That gets me part of the way there in that I can edit the text portion. However, the command for the order #, I believe, is:

 

<?php echo $oID; ?>

 

The problem seems to be that it cannot be called, apparently, from that file. Maybe it needs to be in the file that requests / generates the email, which also calls "checkout_process.php"

 

If anyone can help get me the rest of the way there it would certainly be appreciated!

 

Thanks.

 

Rob

Rob Proctor

Marine.com LLC

Link to comment
Share on other sites

  • 2 weeks later...

You have to edit checkout_process.php file.

 

I don't know the line number since I've edited mine a lot but here's what I did:

 

Just about line 300 I think, right before it sends the mail.

 

$email_order_id = $insert_id; 

// Getting the order number into the subject:
$email_subject = ''.STORE_OWNER.', '. EMAIL_TEXT_SUBJECT .' '. $email_order_id .'';  
 
then just below change EMAIL_TEXT_SUBJECT into $email_subject as below:

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

 

Works like a charm :)

Insert clever remark here

Link to comment
Share on other sites

Hi, Rene, I tried what you said, but the only thing that shows up on the subject line is the text for the email subject. Neither the store owner's name nor the Order number show up. I was wondering whether there was anything else that I need to change?

 

Thanks,

Joan :(

Link to comment
Share on other sites

Wait, i think it actually works. What I was receiving was the copy for the Send Extra Order emails, and I hadn't included the order number in those. The emails intended for the buyer came in later, and it had the order number in the subject line.

 

Thanks!

 

Joan :D

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...