PDF invoice list registrants, each on a new line instead of seperated by comma

  • bumble
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
2 years 7 months ago #146330 by bumble
Hi there, I am using [GROUP_MEMBERS_NAMES] to list registrants in the PDF invoice.
Can I ask if there is there a way to list each Registrant on a new line, instead of them separated by commas?

What I see now: FirstName LastName, FirstName LastName, FirstName LastName

What I want (if it can be bulleted even better!):
FirstName LastName
FirstName LastName
FirstName LastName

I await your reply. Thank you!

Please Log in or Create an account to join the conversation.

More
2 years 7 months ago #146332 by Tuan Pham Ngoc
That would require small modification to the code. Could you please look at the file components/com_eventbooking/helper/registration.php, find the below line of code and try to make change:
Code:
$replaces['group_members_names'] = implode(', ', $groupMembersNames);

Change it to:
Code:
$replaces['group_members_names'] = implode('\r\n', $groupMembersNames);

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • bumble
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
2 years 7 months ago #146446 by bumble

Please Log in or Create an account to join the conversation.

More
2 years 7 months ago #146449 by Tuan Pham Ngoc
You're welcome. Later today, when I am less busy, I will see if I can help implementing it for you using override so that you can continue updating to future releases of the extension without having to re-do this each update

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc