Delete first_name "Group:" on csv file

  • doblzou
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
13 years 4 days ago #25039 by doblzou
Hi,
how can I delete the word ":Group" on the CSV file when I exported the registrants.
Look at teh screenshot.
Thank you.

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

More
13 years 4 days ago #25060 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Delete first_name "Group:" on csv file
Hi

This will require some modification to the code. Look at the file administrator/components/com_eventbooking/controller.php, find the function csv_export. Inside that function, find the code below :
Code:
$results_arr[]=$r->first_name.' '.JText::_('EB_GROUP').$groupNames[$r->group_id] ;

Change it to :

$results_arr[]=$r->first_name;

After that, it should work as expected.

Tuan

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

  • doblzou
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
13 years 4 days ago #25063 by doblzou
Replied by doblzou on topic Re: Delete first_name "Group:" on csv file
Thank you it work now :)
And sorry for the double post.

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

  • doblzou
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
12 years 9 months ago #29181 by doblzou
Replied by doblzou on topic Re: Delete first_name "Group:" on csv file
Hi, I did an update of EB 1.5.3 and the word "Group" appears again and yet I remade the same change as you had said but it does not change anything (I delete the cache)
Thank you for your help.

here is my code line 679 of controller.php
if ($r->is_group_billing)
$results_arr[]=$r->first_name ;
elseif ($r->group_id > 0)
$results_arr[]=$r->first_name ;
else
$results_arr[]=$r->first_name ;

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

More
12 years 9 months ago #29231 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Delete first_name "Group:" on csv file
Hi

I am sure that it is just something missing in your code. Please try to spend time to find out it to save me sometime. If you cannot get it work, please submit a support ticket on tomorrow and I will help you.

Regards,

Tuan

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

  • doblzou
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
12 years 9 months ago #29443 by doblzou
Replied by doblzou on topic Re: Delete first_name "Group:" on csv file
HiTuan,
I forgot to tell you that this applies only on the front end and not the backend that it works perfectly.
I would delete the word group provide csv file export function on the front end also.
thank you.

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

More
12 years 9 months ago #29471 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Delete first_name "Group:" on csv file
Then you can do the same for front-end function. The file is components/com_eventbooking/controller.php. The function is still csv_export (almost the same with back-end function).

Tuan

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

  • doblzou
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
12 years 9 months ago #29481 by doblzou
Replied by doblzou on topic Re: Delete first_name "Group:" on csv file
Perfect, thank you Tuan !

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

Moderators: Tuan Pham Ngoc