Support

Home Forums Event Espresso Premium Show selected price option on confirmation page

Show selected price option on confirmation page

Posted: December 30, 2013 at 3:33 am

Viewing 6 reply threads


Hannes Schnitzer

December 30, 2013 at 3:33 am

Hi,

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.

Where can I pull the selected price option from?

Thanks


Hannes Schnitzer

December 30, 2013 at 3:44 am

Not sure if the Thank You page is different, but I also need to display the selected price option on that page.

Thanks


Dean

December 30, 2013 at 5:19 am

Hi Hannes,

The price option (ticket name) already displays on the Confirmation Page http://d.pr/i/Vqoa

The Thank You page data can be modified by editing the payment_overview.php template located in event-espresso/templates

You may wish to copy this to wp-content/uploads/espresso/templates before editing to make sure updates dont over write your edits.


Hannes Schnitzer

December 30, 2013 at 6:18 am

You’re right, sorry.
I accidentally deleted those lines in my template override.

All fixed now, thank you.


Hannes Schnitzer

December 30, 2013 at 6:24 am

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?

Thanks


Sidney Harrell

December 31, 2013 at 5:22 pm

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.


Hannes Schnitzer

January 2, 2014 at 5:06 am

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.

Event Espresso