Support

Home Forums Event Espresso Premium Displaying the base price

Displaying the base price

Posted: March 1, 2015 at 8:51 am

Viewing 1 reply thread


Jay Reid

March 1, 2015 at 8:51 am

I wonder if it’s possible to display the base price / lowest price.

I’m trying to do something similar to the following, and would prefer I don’t have to create a custom field to make this happen: https://www.dropbox.com/s/ecl3msyoyhvabeb/Screenshot%202015-03-01%2015.51.29.png?dl=0

Thanks.


Josh

  • Support Staff

March 4, 2015 at 7:20 pm

Hi Jay,

This will echo out the first entered ticket’s price:

if ( $post->EE_Event instanceof EE_Event ) {
	$ticket_array = $post->EE_Event->first_datetime()->tickets();
	$first_ticket = array_shift($ticket_array);
	echo $first_ticket->pretty_price();
}
Viewing 1 reply thread

The support post ‘Displaying the base price’ 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