CSV Exporting in First Name Field

  • Mike H
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 8 months ago #67839 by Mike H
CSV Exporting in First Name Field was created by Mike H
When I export registrants for a GROUP, in the FIRST NAME field, it adds this other data:

screencast.com/t/H27jPzqT

I JUST want the first name in there. How do I do this? The other info, like 'GROUP FORM ONLY: ONLY BILLING' should maybe be a different column of data. It just makes a mess of things to not be able to import these lists of data into our program without having to manually remove this extra text from the first name field.

Thanks!

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

More
8 years 8 months ago #67856 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic CSV Exporting in First Name Field
Hi Mike

Please open the file components/com_eventbooking/helper/data.php, function csvExport, find the code below (from line 491 to line 502):
Code:
if ($r->is_group_billing) { $fields[] = $r->first_name . ' ' . JText::_('EB_GROUP_BILLING'); } elseif ($r->group_id > 0) { $fields[] = $r->first_name . ' ' . JText::_('EB_GROUP') . $groupNames[$r->group_id]; } else { $fields[] = $r->first_name; }

And change it to:
Code:
$fields[] = $r->first_name;

After that, it will work as expected

Regards,

Tuan
The following user(s) said Thank You: Mike H

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

Moderators: Tuan Pham Ngoc