Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Edit Email Confirmation 2.3.1


Papadish

Recommended Posts

For the life of me I cannot find where to edit the Email Confirmation Subject. The default line is "Order for 'store name'" and my client wants it to say "Order Confirmation from 'store name'". This should be simple, but I can't find the file to edit. In the language file order_confirmation.php there is a Define statement but Where do you edit the content of this?

 

<?php

 

define('NAVBAR_TITLE_1', 'Checkout');

define('NAVBAR_TITLE_2', 'Confirmation');

 

define('HEADING_TITLE', 'Order Confirmation');

 

define('HEADING_SHIPPING_INFORMATION', 'Shipping Information');

define('HEADING_DELIVERY_ADDRESS', 'Delivery Address');

define('HEADING_SHIPPING_METHOD', 'Shipping Method');

define('HEADING_PRODUCTS', 'Products');

define('HEADING_TAX', 'Tax');

define('HEADING_TOTAL', 'Total');

define('HEADING_BILLING_INFORMATION', 'Billing Information');

define('HEADING_BILLING_ADDRESS', 'Billing Address');

define('HEADING_PAYMENT_METHOD', 'Payment Method');

define('HEADING_PAYMENT_INFORMATION', 'Payment Information');

define('HEADING_ORDER_COMMENTS', 'Comments About Your Order');

 

define('TEXT_EDIT', 'Edit');

?>

 

Thank you in advance for your help,

 

Randy

Link to comment
Share on other sites

Open catalog/order_process.php and look for:

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

 

You can make changes in that area. To understand what these parameters are look up the function 'tep_mail' in catalog/includes/functions/general.php

 

Essentially you can hard code in what you would like to do by changing STORE_OWNER to 'Order Confirmation from '.STORE_OWNER

Oscommerce site:

 

 

OSC to CSS, http://addons.oscommerce.com/info/7263 -Mail Manager, http://addons.oscommerce.com/info/8120

Link to comment
Share on other sites

OK, I don't have a file at all called order_process.php. I have one called checkout_process.php which has that line, but adding the hard code just causes an error. Here's the code:

 

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

 

// send emails to other people

if (SEND_EXTRA_ORDER_EMAILS_TO != '') {

tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

}

 

Editing this text should be much easier...

 

Are you using 2.3.1?

Link to comment
Share on other sites

Yes, checkout_process.php is the correct file.

 

Try this:

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

Oscommerce site:

 

 

OSC to CSS, http://addons.oscommerce.com/info/7263 -Mail Manager, http://addons.oscommerce.com/info/8120

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...