Support

Home Forums Event Espresso Premium Need to add custom field on backend

Need to add custom field on backend

Posted: March 6, 2019 at 5:37 am


ChesWine

March 6, 2019 at 5:37 am

Hello Team,

I want to add one custom text box in event ticket after textarea ( https://www.screencast.com/t/bopKo8WH ) and also we want to display this textbox value on front-end over here https://www.screencast.com/t/4S1gnWAwH

Would you please provide me logic/links/hooks for this?

Thanks.


Tony

  • Support Staff

March 13, 2019 at 7:12 am

Hi there,

There’s a hook ‘fired’ directly after the ticket description (the text area) call AHEE__event_tickets_datetime_ticket_row_template_after_desc

You can use that action to add your custom field, remember you’ll need to hook into save_post to save your value.

Displaying the value on the ticket selector is going to be a little more tricky, the filter we have for that location is FHEE__ticket_selector_chart_template__do_ticket_entire_row which is passed the entire HTML row for the ticket, you’re going to need to add your own logic to determine the correct location to output your field.

You must be logged in to reply to this support post. Sign In or Register for an Account

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: publish

Updated by  Tony 6 days, 9 hours ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!