Payment Notification Email Not Pulling Names

far1e8k
far1e8k
Offline
0
Hi. In our payment received notification email, the Salutation name and the "Username" aren't pulling any values (per attachment). All of our invoices are sent to clients who don't have a user account, and they pay without creating an account. I see the template used is located at: "components/com_invoices/views/payment/tmpl/default_email.php"

For the "Username" can I change that from:
<?php echo JText::_( 'USERNAME' ); ?>: <?php echo $this->payment->username; ?>

to?:
<?php echo JText::_( 'RECIPIENT_NAME' ); ?>: <?php echo $this->payment->to_name; ?>


Currently using IM v1.4.5

In a future version, will the Notification Email be included as a template in the "Templates" section as well to allow non-core file editing?

Thanks!

Accepted Answer

Joan Vilà
Joan Vilà
Offline
Friday, October 09 2015, 11:23 AM - #Permalink
1
Hello,

As you said this is happening because there are no registered users.


To pull the name "Dear ... "
Replace the line 55:



for this one:
payment->to_name ); ?>



And then to show the contact name instead of the username that doesn't exists you can show the name of the reciever replacing line 61:
: payment->username; ?>

for this one:
: payment->to_name; ?>


As you said.

Please, tell me if that solved it,
Joan
The reply is currently minimized Show
Responses (0)
  • There are no replies here yet.
Your Reply