Zen Cart Logo
Forums / General Questions / Need to add extra text in ADMIN EMAIL subject header only

Need to add extra text in ADMIN EMAIL subject header only

Locked

Views: 627

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
14 Dec 2009, 9:55 PM
#1
jeffmic avatar

jeffmic

Zen Follower

Join Date:
Aug 2006
Location:
North Carolina
Posts:
280
Plugin Contributions:
0

Need to add extra text in ADMIN EMAIL subject header only

Hi gang,

I need to add an extra 'look up' code to my admin email subjects that I get to include the payment type too.

Currently it shows this when I get the admin email:
Order No: xxxxx

I would like it to say this:

Order No: xxxxx - Paypal
or
Order No: xxxxx - Mastercard

etc

Can anyone advise where exactly I can add this code? I looked and attempted to modify the code in classes/orders.php, but none of it worked thus far.

thanks so much.... :)

14 Dec 2009, 10:35 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Need to add extra text in ADMIN EMAIL subject header only

Near the VERY bottom of that file, you'll find a couple lines that look like this ... Add the additional code, as shown:```
zen_mail('', SEND_EXTRA_ORDER_EMAILS_TO, SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT . ' ' . EMAIL_TEXT_SUBJECT . EMAIL_ORDER_NUMBER_SUBJECT . $zf_insert_id[B] . '-' . $GLOBALS[$payment_class]->title[/B],
$email_order . $extra_info['TEXT'], STORE_NAME, EMAIL_FROM, $html_msg, 'checkout_extra', $this->attachArray);