How To: Add Order number to Customer Email Subject

For articles specific to version 6.x
Post Reply
bart
Posts: 57
Joined: Wed Sep 08, 2010 5:40 pm
Location: UK

How To: Add Order number to Customer Email Subject

Post by bart »

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:

Code: Select all

$obj_email->Set("Subject", sprintf(GetLang('YourOrderFrom'), $store_name));
Replace with:

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);
Replace with:

Code: Select all

$obj_email->Set("Subject", sprintf(GetLang('YourOrderFrom'), $store_name)." (#".$order['orderid'].") ".$subject); //## MOD Order No in status email subject ##
open /language/en/common.ini

Find:

Code: Select all

OrderStatusChangedSubject = "Your Order Has Been Updated"
Replace with:

Code: Select all

OrderStatusChangedSubject = "Has Been Updated"

Post Reply