Jump to content

Adding customer name to "new order" email subject


Stahoo

Recommended Posts

Hello,

 

Could anybody help me with this issue - I want to add firstname and lastname to new order email subject. I know that the subject is located somewhere here - modules\mailalerts\mailalerts.php, line 446 -

sprintf(Mail::l('New order : #%d - %s', $mail_id_lang), $order->id, $order->reference),

 

but I could not find the way to add a first and last name to this.

Some ideas? I'm using PS 1.6.1.11

 

Best regards

Edited by Stahoo (see edit history)
Link to comment
Share on other sites


Thanks bellini13 for your help. I will only like to add some separation - comma and whitespace. It will look like this:



sprintf(Mail::l('New order : #%d - %s', $mail_id_lang), $order->id, $order->reference).', '.$customer->firstname.' '.$customer->lastname,


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...