Support

Home Forums Event Espresso Premium Sale end date in Table View Template

Sale end date in Table View Template

Posted: December 7, 2018 at 7:37 am


JudosportOost

December 7, 2018 at 7:37 am

Hello,

I would like to show the sale end date of the event in the Table View. I’m using Event Espresso to register for judo tournaments and it would be very handy that the judoka’s can see the SALE enddate. Is this possible?

Regards,
Marco Hesselink


Josh

  • Support Staff

December 7, 2018 at 12:07 pm

Hi,

This is possible, and requires a working level of html & PHP coding.

First, you’ll follow the documentation for how to load in a custom template:
https://eventespresso.com/wiki/events-table-view-template-add-on/#customizations

The file name you’ll be working with will typically be:
espresso-events-table-template.template

Then, you’ll add a new column heading somewhere between lines 45-50 (where the column headings are)
e.g.
<th>Sale ends</th>

Then, you’ll add the table cell to display the sale end date of the event. The table cells start on line 114 and end around 133.
e.g.

<td>
	<?php $ticket = $event->get_ticket_with_latest_end_time();
	if($ticket instanceof EE_Ticket) {
		echo $ticket->end_date();
	}
	?>
</td>

The support post ‘Sale end date in Table View 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