- Posts: 11
- Thank you received: 0
CSV Exporting in First Name Field
- Mike H
- Topic Author
- Offline
- New Member
Less
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!
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.
- Tuan Pham Ngoc
- Offline
- Administrator
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):
And change it to:
After that, it will work as expected
Regards,
Tuan
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
Support
Documentation
Information
Copyright © 2024 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.