Home › Forums › Event Espresso Premium › Display ticket price in upcoming events widget
Posted: August 21, 2020 at 6:24 am
EE4 Personal License
August 21, 2020 at 6:24 am
I was wondering if there is some kind of way to display the ticket price in the upcoming events list? I already use the custom-ee-widget.php file if you want to know, but I don’t know what to put in there.
August 24, 2020 at 4:13 am
The prices on events are set on the tickets within the event, so in order to display the price, you need the tickets.
Within Event Espresso, we display the prices using the ticket selector, which is a little big to display on the widget without customizations so it really depends on how you want to display the price.
You can pull the active tickets for an event using something like $tickts = $event->active_tickets() then loop over and display them how you prefer, but not sure if that’s what you are looking for?
$tickts = $event->active_tickets()
You must be logged in to reply to this support post. Sign In or Register for an Account
Updated by Tony 2 months ago ago
Tagged: ticket price, widget, upcoming events