Page 1 of 1

How to change admin email subject

Posted: Wed Jun 27, 2012 5:21 pm
by pgp
how do I just update current store name in admin email subject and keep the rest. Right now my admin email subject says "store name - Order 22", I want to make this as "Notification of Payment Received - Order 22" ? :(

Re: How to change admin email subject

Posted: Wed Jun 27, 2012 6:31 pm
by MarketInSG
catalog/language/english/mail/order.php

Re: How to change admin email subject

Posted: Wed Jun 27, 2012 7:17 pm
by pgp
Hi, I found where to change but not exactly sure which part, when I try to edit I get a syntax error...

// Admin Alert Mail

if ($this->config->get('config_alert_mail')) {

$subject = sprintf($language->get('text_new_subject'), html_entity_decode($this->config->get('config_name'), ENT_QUOTES, 'UTF-8'), $order_id);


Change to?
$subject = sprintf($language->get('text_new_subject'), ('Notification of payment received'), ENT_QUOTES, 'UTF-8'), $order_id);

is that correct?

Re: How to change admin email subject

Posted: Wed Jun 27, 2012 8:39 pm
by MarketInSG
I was saying the language file...

Re: How to change admin email subject

Posted: Thu Jun 28, 2012 4:57 am
by pgp
oh ok, got it now. Do I just change text_new_subject = whatever I want?

but then would it still keep store name?? and also I want to keep order number at the end of the subject line.

Re: How to change admin email subject

Posted: Thu Jun 28, 2012 11:41 am
by MarketInSG
you change it to anything you want, but keep the %s sign there.

Re: How to change admin email subject

Posted: Thu Jun 28, 2012 5:54 pm
by pgp
You mean, edit like below?

$_['text_new_subject'] = 'Notification of payment received - Order %s';

That would just make subject as for an example; Notification of payment received - order 22?

Will it still have store name in the subject?

Re: How to change admin email subject

Posted: Thu Jun 28, 2012 11:03 pm
by MarketInSG

Code: Select all

$_['text_new_subject']          = '%s - Order %s';
to

Code: Select all

$_['text_new_subject']          = '%s - Notification of Payment Received: Order %s';

Re: How to change admin email subject

Posted: Tue Jul 02, 2019 3:37 am
by pamarakos
Hi ,
I need to change the subject of the admin order mail alert?