I was just wondering what the best method for adding a custom field to the metabox “Event Tickets and Datetimes” is to allow the user to add a custom value to each ticket ? I’m using EE4.
Looks like you would have to override the _get_ticket_row method in the espresso_events_Pricing_Hooks class in caffeinated/admin/new/pricing and modify the event_tickets_datetime_ticket_row.template.php template.
Looks like they get processed in _update_tkts method in the espresso_events_Pricing_Hooks class. You would probably need to grab your data from the $data then add it to the created ticket object before it gets saved.
The support post ‘Add custom field to Event Tickets object’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.