Add new field to Attendees Table

Home Forums Ticket Products Event Tickets Plus Add new field to Attendees Table

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #955485
    Mason
    Participant

    Hi,
    I’d like to add a new column to the attendees table for certificates after “check in”. Basically exactly same as Check-in but for issuing certificates for event participants. Then, when I click on “Issue Certificate” button it would change to “undo issue certificate”. Ideally, it has to be exported to the CSV file too.
    Is this possible with EDD-Tickets?
    Thanks.

    #955489
    George
    Participant

    Hey Mason,

    Making such a customization is indeed possible, but you’ll have to take the reins on implementing things how you see fit. You can customize the Attendees List table a few different ways – I go over some of them in-depth in this other forum post, which should hopefully spark a few ideas for you → https://theeventscalendar.com/support/forums/topic/add-attendee-telephone-number-to-attendee-list/

    If you apply those principles effectively, and take some time researching anything with WordPress’ way of doing things that you’re not familiar with, you should be able to put something together here.

    In addition to that forum thread and the code I shared there, one hugely-helpful thing is that the Attendees List – and indeed all admin-facing tables in The Events Calendar and its add-ons – are just extensions of WordPress’ built-in WP_List_Table class. So if you learn about that class and how it and its methods work, you should learn quite a bit about extending tables that are built off of it like the Attendees List → https://codex.wordpress.org/Class_Reference/WP_List_Table

    I hope this helps!

    Cheers,
    George

    #955504
    Mason
    Participant

    Hey George,

    Thanks for your input. I read the other forum but it doesn’t help that much since I want to add a new column to the table.
    If I wanted to edit the plugins core php file to add this column which files will I have to modify?

    Cheers
    Mason

    #955787
    George
    Participant

    Hi Mason,

    The core plugin files where the attendees list is assembled is in /admin-views/tickets/attendees.php – you can see the table being constructed here and try adding columns or tweaking data as needed.

    Be sure to make backups of any customizations here, as they will be over-written if you autoupdate the plugin and will need manual replacement.

    Cheers!

    #955805
    Mason
    Participant

    Thank you George. I can’t find the directory you mentioned in /wp-content/plugins/eddtickets/admin-views/
    There is no sub-directory there!

    #956287
    George
    Participant

    Hey Mason,

    Hm, that’s a bit of a red flag, and I wonder what version of the plugin you’re using? The plugin indeed has /admin-views, though the only file there is a metabox.php file.

    The /admin-views subdirectory I was referring to is actually in /the-events-calendar itself, the core plugin – not the files of a ticketing add-on, sorry for not being clear about that!

    Let me know if you’re able to find this subdirectory in the core plugin.

    Cheers!
    George

    #956343
    Mason
    Participant

    Hey George,

    I do have /admin-views/ but there is no sub-directory inside it!

    I found the Attendees’ table defined in class-eddtickets.php located inside /classes/

    Is this the only file that I should edit?

    Thanks

    #957217
    George
    Participant

    Hey Mason,

    The only file you should need is /admin-views/tickets/attendees.php which is in the core version of The Events Calendar, not in the EDD-Tickets add-on.

    Does that specification help at all? The template file here is not in the add-on – the add-on loads the template from the core plugin, The Events Calendar.

    Let me know if this helps – and thank you for your patience thus far Mason!

    #959071
    Mason
    Participant

    Thanks George. Found the file 🙂

    #959589
    George
    Participant

    Nice! Since the rest of this process is a customization from here on out, I’ll go ahead and close up this ticket. If other issues arise on your site, or any other questions pop into your mind, let us know – come back and open up a new thread any time.

    Cheers,
    George

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Add new field to Attendees Table’ is closed to new replies.