How To: Add Order number to Customer Email Subject
Posted: Tue Jul 24, 2012 1:50 pm
The customer order receipt email subject line does not as standard show the order reference number.
Strangely the admin copy of the same email does...
To add the order number to the customer email subject line:
open /lib/orders.php
Find:
Replace with:
To also add the order number and store name to the status change email.
find:
Replace with:
open /language/en/common.ini
Find:
Replace with:
Strangely the admin copy of the same email does...
To add the order number to the customer email subject line:
open /lib/orders.php
Find:
Code: Select all
$obj_email->Set("Subject", sprintf(GetLang('YourOrderFrom'), $store_name));
Code: Select all
$obj_email->Set("Subject", sprintf(GetLang('YourOrderFrom'), $store_name)." (#".$order_row['orderid'].")"); // ## MOD Order No in email subject ##
To also add the order number and store name to the status change email.
find:
Code: Select all
$obj_email->Set('Subject', $subject);
Code: Select all
$obj_email->Set("Subject", sprintf(GetLang('YourOrderFrom'), $store_name)." (#".$order['orderid'].") ".$subject); //## MOD Order No in status email subject ##
Find:
Code: Select all
OrderStatusChangedSubject = "Your Order Has Been Updated"
Code: Select all
OrderStatusChangedSubject = "Has Been Updated"