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>

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  Josh 2 weeks, 2 days ago ago

Topic Tags

Notifications

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