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>

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 5 days, 11 hours ago ago

Topic Tags

Notifications

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