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

Started by jeffmic on 14 Dec 2009, 9:55 PM · 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.... :)

Jeff Michaels,
pres of Musical Creations Ltd.

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

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

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);

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.