Stahoo Posted June 14, 2017 Share Posted June 14, 2017 (edited) 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 June 14, 2017 by Stahoo (see edit history) Link to comment Share on other sites More sharing options...
bellini13 Posted June 14, 2017 Share Posted June 14, 2017 sprintf(Mail::l('New order : #%d - %s', $mail_id_lang), $order->id, $order->reference).$customer->firstname.' '.$customer->lastname, 1 Link to comment Share on other sites More sharing options...
Stahoo Posted June 16, 2017 Author Share Posted June 16, 2017 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now