"First Name" field has unwanted suffix - "group:"
- Robert Ivey
- Topic Author
- Offline
- New Member
-
Less
More
13 years 1 month ago #14702
by Robert Ivey
bivey
"First Name" field has unwanted suffix - "group:" was created by Robert Ivey
Thankyou Tuan for a fantastic solution to the issue of making a single payment for multiple registrants. It is perfect for our cycling event where one person may pay for a number of registrants.
BUT, there is still one outstanding issue that prevents us from using the exported CSV file in any mail-merge. The Firstname field has extra data "Group:" inserted as a suffix - preventing us from personalising mail-merged emails & 'snail-mail' letters we need to send to EVERY registrant/cyclist.
The 'Mass Email' feature has limited value for us, as it sends to only unique email addresses - and other registrants using the same email address do not receive a personalised email (often the case with family entries).
Otherwise - THANKYOU for a great program Tuan.
Bob
BUT, there is still one outstanding issue that prevents us from using the exported CSV file in any mail-merge. The Firstname field has extra data "Group:" inserted as a suffix - preventing us from personalising mail-merged emails & 'snail-mail' letters we need to send to EVERY registrant/cyclist.
The 'Mass Email' feature has limited value for us, as it sends to only unique email addresses - and other registrants using the same email address do not receive a personalised email (often the case with family entries).
Otherwise - THANKYOU for a great program Tuan.
Bob
bivey
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
13 years 1 month ago #14741
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: "First Name" field has unwanted suffix - "group:"
Hi Bob
Please have a look at the file administrator/components/com_eventbooking/controller.php, look at csv_export function and you should find and remove the word easily .
Regards,
Tuan
Please have a look at the file administrator/components/com_eventbooking/controller.php, look at csv_export function and you should find and remove the word easily .
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Robert Ivey
- Topic Author
- Offline
- New Member
-
13 years 1 month ago #14760
by Robert Ivey
bivey
Replied by Robert Ivey on topic Re: "First Name" field has unwanted suffix - "group:"
Many thanks for your quick reply Tuan.
I edited the following lines and now the export works perfectly (export from back-end only, it does not affect the export facility available from the front-end Register page which still has the suffix on the firstname - but that is not important)
(obviously, text between the /* ... */ is your original)
if ($r->is_group_billing)
/*$results_arr[]=$r->first_name.' '.JText::_('EB_GROUP_BILLING'); */
$results_arr[]=$r->first_name.' ';
elseif ($r->group_id > 0)
/*$results_arr[]=$r->first_name.' '.JText::_('EB_GROUP').$groupNames[$r->group_id] ;*/
$results_arr[]=$r->first_name.' ';
Thanks again for a great solution.
Bob
I edited the following lines and now the export works perfectly (export from back-end only, it does not affect the export facility available from the front-end Register page which still has the suffix on the firstname - but that is not important)
(obviously, text between the /* ... */ is your original)
if ($r->is_group_billing)
/*$results_arr[]=$r->first_name.' '.JText::_('EB_GROUP_BILLING'); */
$results_arr[]=$r->first_name.' ';
elseif ($r->group_id > 0)
/*$results_arr[]=$r->first_name.' '.JText::_('EB_GROUP').$groupNames[$r->group_id] ;*/
$results_arr[]=$r->first_name.' ';
Thanks again for a great solution.
Bob
bivey
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
13 years 1 month ago #14765
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: "First Name" field has unwanted suffix - "group:"
Thanks Bob for sharing the code .
Regards,
Tuan
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Robert Ivey
- Topic Author
- Offline
- New Member
-
13 years 1 month ago #14769
by Robert Ivey
bivey
Replied by Robert Ivey on topic Re: "First Name" field has unwanted suffix - "group:"
I have since discovered that the following edit of the file: components/com_eventbooking/controller.php also omits the firstname suffix in csv exports from the front end:
if ($r->is_group_billing)
/*$results_arr[]=$r->first_name.' '.JText::_('EB_GROUP_BILLING'); - changed by BOB*/
$results_arr[]=$r->first_name.' ';
elseif ($r->group_id > 0)
/*$results_arr[]=$r->first_name.' '.JText::_('EB_GROUP').$groupNames[$r->group_id] ; changed by BOB*/
$results_arr[]=$r->first_name.' ';
if ($r->is_group_billing)
/*$results_arr[]=$r->first_name.' '.JText::_('EB_GROUP_BILLING'); - changed by BOB*/
$results_arr[]=$r->first_name.' ';
elseif ($r->group_id > 0)
/*$results_arr[]=$r->first_name.' '.JText::_('EB_GROUP').$groupNames[$r->group_id] ; changed by BOB*/
$results_arr[]=$r->first_name.' ';
bivey
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.