Support

Home Forums Event Espresso Premium Expired, Full Event Still Showing Up on Event List EE4

Expired, Full Event Still Showing Up on Event List EE4

Posted: April 11, 2015 at 2:43 pm


jackie neufeld

April 11, 2015 at 2:43 pm

Hi there,
We just switched to EE4 from EE3 and I’ve noticed one of our multi-day classes is showing a Register button despite having Class Full status, and the ticket is also expired (set to stop selling 2 days ago). I’ve set ESPRESSO_EVENTS to show_expired=”false”, and also Display Expired Events to No, and it still shows up in both the archive page and event list I have on a custom page.


Dean

April 13, 2015 at 2:46 am

Hi,

With this event, are any of the event dates still in the future? As in are the event end dates for all datetimes in the past?

Can you provide a link to the event/s in question? A screenshot of the datetimes/tickets in the admin would be great as well, if possible.


jackie neufeld

April 13, 2015 at 10:18 am

Hi Dean,
I’ve noticed it now with all events that have expired tickets and one event that is not expired but is full. It only seems to be on the ESPRESSO_EVENTS list, single event pages are fine. The events in question do still have dates in the future, and just show the future dates in the list. I’m actually not so concerned with the events showing up in the list as I am that there is still a “Register” button under them, as people can no longer register for these. If there’s a way for me to remove the register button for expired tickets and full classes that’s really all I care about.

You can see the event list on this page under the calendar: https://tiggys.ca/current-workshops/
The events in question are: https://tiggys.ca/classes/venice-duplicate/
https://tiggys.ca/classes/whistler-village-3/
https://tiggys.ca/classes/maggie-garden/

Screenshot for Expired class (I’ve set Ticket Display to No just to hide the Register Button for now):https://www.dropbox.com/s/lwlqjo6qh2o9356/VeniceClassScreenShot.jpg?dl=0
Screenshot for Full class (not expired): https://www.dropbox.com/s/rmgak3d3nedbhvc/MaggiesClassScreenShot.jpg?dl=0

Thanks for your help!


Lorenzo Orlando Caum

  • Support Staff

April 13, 2015 at 10:56 am

Hey there Jackie,

Try this sample coding:

https://github.com/eventespresso/ee-code-snippet-library/blob/master/templates/de_ee_filter_events_out_with_expired_tickets.php

It can be added to your child theme’s functions.php file (do not include the opening php tag) or a site specific plugin:

http://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

Once in place, expired events will no longer appear in your events listing page.

The register button should be a view details button and I’ve reported that as a bug. However, the workaround above should work.

Thanks


Lorenzo


jackie neufeld

April 13, 2015 at 12:38 pm

Thanks Lorenzo, that removed the expired ticket events from the list and archive pages! And I just used CSS to hide the Registration button from the status-sold_out events that are full but not expired.

Thanks for your help.

The support post ‘Expired, Full Event Still Showing Up on Event List EE4’ 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.

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: closed

Updated by  jackie neufeld 4 years, 8 months ago ago

Topic Tags

Notifications

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