Support

Home Forums Event Espresso Premium New Status based on Ticket Sell Until Date

New Status based on Ticket Sell Until Date

Posted: September 1, 2019 at 7:28 pm


MakeItNifty

September 1, 2019 at 7:28 pm

Thanks for developing a great Event Management plugin.
It’s been a fantastic resource as I’ve started my sewing class business.

I’d like to add a new event status – e.g. “Registrations Closed” – for events that are upcoming but all Ticket Sell-Until dates have passed, but the event hasn’t sold out.
And is there a way to add this status to the event calendar and event table.

Thank you in advance for your assistance.


Josh

  • Support Staff

September 3, 2019 at 1:04 pm

Hi,

What you could do is add the following code:

https://gist.github.com/joshfeck/02a8da94581ed96b3f7d63dd104d7416

You can add the above to a functions plugin or, if available, into your WordPress child theme’s functions.php file.

The code will add a “Registration Closed” message to the event page, the events archive (list), and the calendar.

To apply the change to the event table, you’ll need to make an edit to the table template. You can follow the general documentation that outlines how to make a custom table template:

https://eventespresso.com/wiki/events-table-view-template-add-on/#customizations

Then, you can edit the code on or around line 113 which has this:
<td class="event_title event-<?php echo $post->ID; ?>"><?php echo $post->post_title; ?></td>

and change it to this:
<td class="event_title event-<?php echo $post->ID; ?>"><?php echo the_title(); ?></td>

The support post ‘New Status based on Ticket Sell Until Date’ 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