on the confirmation page, together with the price, I’d like to also display the selected price option. I tried to pull this information from the $questions variable but found that it must be stored somewhere else.
I just noticed that the variable $attendee_prices used in confirmation_display.php is not available in payment_overview.php. Is there another way to access this information on the Thank you page?
Probably the easiest way would be to override the function that grabs most of the attendee data for the thank you page:
You can add this code to one of the following:
1 – Your theme’s functions.php file. It may get overwritten the next time you update your theme.
2 – The EE custom files add-on in the custom_functions.php file.
3 – Use this blank plugin to hold the custom function.
Then the variable $price_option would be available in the payment_overview.php template. It would hold the name of the ticket.
Added to custom_functions.php, works like a charm.
Thanks!
Viewing 6 reply threads
The support post ‘Show selected price option on confirmation page’ 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.