Event custom field in Registration History

  • hide10
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
3 years 2 months ago #141083 by hide10
Hello,

I want to add a column for one specific event custom field in Registration History.
I wish I could use the format below, but Registration History does not support it:
<?php echo $event->field_customname; ?>

I referred to the topic below and tried editing the history/default.php, but no success.
joomdonation.com/forum/events-booking-general-discussion/65586

Will you please advise some more hints or other example file that I can refer to?

Thanks.

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

More
3 years 2 months ago #141090 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Event custom field in Registration History
Code:
$registry = new JRegistry($row->custom_fields); echo $registry->get('field_speaker');

Of course you need to replace field_speaker with name of the custom field which you want to display the value

Tuan

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

  • hide10
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
3 years 2 months ago #141094 by hide10
Replied by hide10 on topic Event custom field in Registration History
Hello Tuan,

It works perfectly!
Thank you so much for your great help :)

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

More
3 years 2 months ago #141097 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Event custom field in Registration History
You're welcome !

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