Support

Home Forums Event Espresso Premium Event Table View – Hide "Sold Out" events

Event Table View – Hide "Sold Out" events

Posted: September 19, 2016 at 11:22 am


kbayegan@gmail.com

September 19, 2016 at 11:22 am

How can I simply make hte table not show the “Sold Out” events?


kbayegan@gmail.com

September 19, 2016 at 5:46 pm

I figured it out. Here is what I did.

Copied espresso-events-table-template-toggle.template.php to my template directory and edited as follows, my addition right after the while loop is commented:


//Get the category for this event
$event = EEH_Event_View::get_event();

// Added by KB to hide sold outs ========
if ( $event->is_sold_out() || $event->is_sold_out(TRUE ) ) {
continue;
}
//=====================================

This might come in handy for someone else.


Tony

  • Support Staff

September 20, 2016 at 5:28 am

Hi there,

Thank you for sharing your solution for others 🙂

When you say your template directory do you mean within /wp-content/uploads/espresso/templates/?


kbayegan@gmail.com

September 20, 2016 at 7:05 am

Sorry if I was not clear. I meant I copied it to my theme folder.

/wpcontent/themes/mytheme/


Tony

  • Support Staff

September 20, 2016 at 7:33 am

No problem, I was just checking if you were aware that you could include the template within your theme.

The support post ‘Event Table View – Hide "Sold Out" events’ 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