Posted: October 29, 2016 at 10:34 am
|
Hello, We have more and more trainings with multiple datetimes, mostly classes that take several sessions over a month to finish. And we use the table view template to show the available courses. Here is the problem: even after the first session, these events continue to show up in the events table as if it’s still for sale (however it says N/A in the price column). They only disappear after the final session is done. You can check an example here: https://www.genevaphotoclub.com/dates-prices/ So my question is how can I stop these events from showing up in the table after the first session starts? Because that’s when actually it’s not possible any more to join these events. Thanks in advance, |
That’s going to be tricky because if I remember correctly, that’s a heavily customized template. May I ask are you setting the Ticket sales end date to match the first day of the class? |
|
|
Hi Josh, For this event, that was the first thing i checked. The “sale until” date is actually the first day of the class… Here is the screenshot of the edit event screen: |
The next thing to check is whether this issue happens with the default template or not. |
|
|
Hello, So I tried with the default template. Here is the result: The events which have already started still shows in the list, and their dates on this table are the next sessions: I think that’s because EE4 still classifies them as upcoming even though the start date has passed: Here are the event details for the first event in question: How to proceed? |
I’d recommend not remove those upcoming classes and the reason to not remove them is because those events still have upcoming dates, and their inclusion in that list does need to indicate they are still for sale. For example, let’s say I’ve signed up for your “Weekday Beginners Photography 5x2hrs – Oct 31-Nov 28” and I forgot which time I’m supposed to attend the next upcoming class. So I go to your website to check and if that class is no longer in that list, I may think the next upcoming classes have been cancelled! A better approach would be to fix the logic in your custom template so that events that can’t be booked anymore no longer display “Book Now”. You can see where on the default template, it displays “Sold Out” when an class can no longer be purchased. |
|
|
I’m having the same issue with my client as well. I’m trying to figure out a custom table setup to show the ‘start date’ and ‘next class’ since they have 4-6 classes on future dates similar to your scenario. |
|
|
|
Hello Josh, So it would be a better solution for us if the event wouldn’t show up in the list at all after the first session. Would that be possible? |
You can add the following code to a functions file or custom functions plugin: What that will do is filter out any classes that no longer have tickets for sale. |
|
The support post ‘Multiple datetime event still showing up in the eventstable after the first date’ 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.