Support

Home Forums Event Espresso Premium Canceled events in the table template

Canceled events in the table template

Posted: March 8, 2018 at 4:12 am

Viewing 1 reply thread


motio

March 8, 2018 at 4:12 am

In the events table template the sold out courses are shown as “sold out”. Is it possible to have that for the canceled events or at least show somehow the event status?


Josh

  • Support Staff

March 9, 2018 at 7:22 am

Hi there,

It’s possible to add this to the table template with custom PHP programming. If you open up the templates folder, you can find the template and copy the template you’re using over to your active WordPress theme’s folder.

Then you look for a block of code that starts with:
if ( $event->is_sold_out()

Then before or after that block add something like this:

if ( $event->is_cancelled() ) {
	$live_button	= '<a id="a_register_link-'.$post->ID.'" class="cancelled a_register_link" href="' 
	$registration_url.'">Cancelled</a>';
}
Viewing 1 reply thread

The support post ‘Canceled events in the table template’ 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