I’m using event meta for my concerts, like a meta key ‘reservation_price’. I want to use this value in the printable ticket template (/espresso-ticketing/templates/index.php) for calculation. How can I access this value from there? Thanks in advance
The meta data is already part of the $data object, so for example you could add the following to your template (within PHP tags):
echo $data->event->event_meta[‘XYZ’];
where XYZ is the meta key, and it will output the answer. Of course that can also be added to a variable instead of being echoed for further manipulation.
The support post ‘How can I use event meta in ticket template’ 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.