"First Name" field has unwanted suffix - "group:"

  • Robert Ivey
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 1 month ago #14702 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

bivey

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

More
12 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 Log in or Create an account to join the conversation.

  • Robert Ivey
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 1 month ago #14760 by Robert Ivey
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

bivey

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

More
12 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

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

  • Robert Ivey
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 1 month ago #14769 by Robert Ivey
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.' ';

bivey

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

Moderators: Tuan Pham Ngoc