Support

Home Forums Event Espresso Premium Expire at End of Event, not Registration

Expire at End of Event, not Registration

Posted: September 12, 2013 at 2:56 pm


william Kaczor

September 12, 2013 at 2:56 pm

Topic example:
A class that meets weekly starting September 2nd thru the 23rd.
Registration ends on September 1st.
We want the class to display as an active event until September 23rd, not on September 1st.

How do we do that?

According to past topics related to my issue, there should be an “Events Expire on Reg End Date” option in my General Settings. For the life of me, I can’t find it. Has it been removed in the latest update or am I looking in the wrong place?

I’ve read and tried the following solution:
https://eventespresso.com/topic/events-need-expire-on-event-end-date/
but it had no effect on the display.

WP 3.6.1
EE v3.1.35.P
Calendar version 2.0.6.2,
Multi Event Registration version 1.0.4,
Recurring Events version 1.1.7.1,


Sidney Harrell

September 12, 2013 at 5:22 pm

It’s because the class has already started. To make it display up to the end date, go up to line 147 of event_list.php and change it to be:

$sql .= $show_expired == 'false' ? " AND (e.end_date >= '" . date('Y-m-d') . "' OR e.event_status = 'O' OR e.registration_end >= '" . date('Y-m-d') . "') " : '';

in addition to the change from Josh’s post.


william Kaczor

September 13, 2013 at 9:50 am

Okay, I’ve replaced the code you’ve indicated along with Josh’s fix. The expected events are still not appearing.

I’m still curious about the “Events Expire on Reg End Date” option – does that still exist?
What else might be preventing my events from appearing?

And thank you!


william Kaczor

September 13, 2013 at 10:37 am

And as a possible fallout from the code adjustment, EE is having trouble with the event list display on a page with an event beginning today:
http://www.ancestralknowledge.org/event-registration/home-school-programs-ee/2012-2013-virginia-home-school-naturalist-program-nova-north-ii/


Dean

September 17, 2013 at 4:02 am

Hi William,

Sorry for the late response.

I checked the two code edits that Josh and Sidney provided and they seem to work just fine. It may be that there was an error in adding them in or something.

Is it possible to get FTP access so I can download the file and check for you?

If you have already sent them, please resend as we dont hold onto that data.

Is it possible to get your login details in order to look into this?

If so, please send them via https://eventespresso.com/send-login-details/

NOTE: login details need to be Admin level and FTP details are appreciated.


Dean

September 17, 2013 at 4:53 am

I’m still curious about the “Events Expire on Reg End Date” option – does that still exist?

Sorry I forgot to answer this. That option was removed several versions ago (maybe 6 months ago in real time).


william Kaczor

September 17, 2013 at 12:38 pm

Login info has been sent!

And thanks for the sanity check on on the deprecated option. I felt like I was the only person who couldn’t see it! 🙂


Dean

September 18, 2013 at 5:26 am

Hi,

The event_list.php had Sidneys code, but had not uncommented out the line that Josh said. As such I did that. Can you check to see if that has worked correctly as I cannot see which events should and should not be there.


william Kaczor

September 18, 2013 at 4:42 pm

Hi Dean –
Yes, sorry – I had been playing around with it and left it commented out in the end. As it stands, The events that I want to show – the ones with registration having ended but the event itself still going through the next month – are not showing.

This would be a good example page to work with:
http://www.ancestralknowledge.org/event-registration/home-school-programs-ee/home-school-naturalist-program-maryland-gbhs-ii-2012-2013

If we can get the code to work, the following event should appear:
http://www.ancestralknowledge.org/event-registration/?ee=415

Though I’m thinking now…. That’s not just an extended event, it’s a weekly recurring event. Could it be that because the recurring event plugin breaks apart repeating occurrence into their own events that the plugin is looking at my master event – the very first occurrence – and seeing that it has happened already so it’s not even looking at any other events in the series?

Ugh… I think I just answered my own question…


Dean

September 19, 2013 at 2:05 am

Hi,

It shouldn’t be the case as each event has its own reg and event dates, regardless of how they were generated.

However, the event you linked is already showing up on the event list you linked to, so it appears to be working by your criteria.


william Kaczor

September 19, 2013 at 11:09 am

In the end, I’ve done a workaround that requires manual adjustments to make current events visible. I can live with it for a while, though I’m still curious as to why I couldn’t get your suggested fixes to work. I love when things can be automated. 🙂

Thanks again for your help! I’ll keep an eye out for anyone else wrestling with the same problem and if they come up with a more elegant solution than I did.


Dean

September 20, 2013 at 4:31 am

OK, and no problem. I am not sure why those fixes were not working for you either, they worked just fine on my test installs. Probably something simple that has been overlooked.

The support post ‘Expire at End of Event, not Registration’ 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