Support

Home Forums Event Espresso Premium $event->event_cost variable

$event->event_cost variable

Posted: June 9, 2014 at 8:28 am

Viewing 1 reply thread


Daniele Pavinato

June 9, 2014 at 8:28 am

Hi, I absolute need to get the $event->event_cost inside the registration_page_display.php
Someone can help me?

I have this line of code: $event_cost = isset($event->event_cost) ? $event->event_cost : "0.00"; but it doesn’t make sense. It always display me ‘0.00’…


Sidney Harrell

June 9, 2014 at 11:57 am

You can use the following code to create a function that you can then call from registration_page_display.php, using client code like so:

$prices = espresso_return_prices_for_event($event_id);

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.

Viewing 1 reply thread

The support post ‘$event->event_cost variable’ 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