Support

Home Forums Event Espresso Premium Display ticket price in upcoming events widget

Display ticket price in upcoming events widget

Posted: August 21, 2020 at 6:24 am


Mullibeer

August 21, 2020 at 6:24 am

Hi there!

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.

regards,
Pieter


Tony

  • Support Staff

August 24, 2020 at 4:13 am

Hi there,

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?

You must be logged in to reply to this support post. Sign In or Register for an Account

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3 Documentation for Event Espresso 4

Status: publish

Updated by  Tony 2 months ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!