Home › Forums › Calendar Products › Events Calendar PRO › Hidden end time issue
- This topic has 6 replies, 4 voices, and was last updated 9 years, 1 month ago by
John.
-
AuthorPosts
-
March 3, 2017 at 3:06 pm #1249296
John
ParticipantGreat feature where the end time can be hidden from view by means of creating events with start and end times being identical…
Venues I will be displaying require there be no end times shown due to “on the night varying finish time”….
BUT… these events can be attended at the last minute or during the event, if discovered..!, only problem is the event disappears from “upcoming” the moment the start time has passed assuming this is because the end time is the same…
Looked through your forums and had a quick look at your files but nothing stands out as to where i can change this. Simply, would like to have changing from “upcoming” to “past events” done as the day changes to the next rather than the time of day…
Can you please point me in the right direction or maybe a piece of code to change this as this will be an important role.
Many ThanksMarch 6, 2017 at 7:24 pm #1250229Cliff
MemberHi, John.
Thanks for your thorough request.
I would guess you’re correct that tickets do not show up once the End Time has passed.
Could you possibly change the end time to something like 2am (e.g. 10pm – 2am)?
If not, why not? And then what about a code snippet that causes tickets to appear until X-hours after an event’s actual end time (or something like that)?
Please let me know your thoughts on both of these potential solutions and we’ll see what we can do.
March 7, 2017 at 5:16 pm #1250823John
ParticipantHi Cliff…
Thanks for your response. My construction capabilities are still in the training wheels stage so forgive my lack of conciseness and lack of knowledge to able to remedy this myself…
Solution 1 is out simply because the venues in question, do not require nor request, but demand no end times at their events… its a control thing on the night…
Im great at placing code snippets where instructed but not at the code creation level as yet…
This would be greatly appreciated, if not too time consuming, if you could pass on this code snippet… 12 hrs delay or a changeable variable would be great…
Many thanks for your time…P.S. I came against quite a few issues this past month but until now ive managed to resolve them all via reading your forums (Note: issues were generally related to my lack of knowledge)…thanks again
March 7, 2017 at 8:24 pm #1250852Cliff
Member<whoops, right name with wrong reply… will post a new reply shortly>
March 7, 2017 at 9:09 pm #1250866Cliff
MemberOkay, got it figured out.
This is the filter we want to use: https://github.com/moderntribe/event-tickets/blob/4.4.3/src/Tribe/Ticket_Object.php#L219
We want to change that from +1 day to +2 days (or something custom like using the Post ID to get the event end time and then add X-hours to that).
Here’s a snippet that you could try out and if you need something more, you could customize it further as you wish:
https://gist.github.com/cliffordp/ab7fe4104cdd9a62091acd8137e04f3a
Please let me know how this goes for you.
March 29, 2017 at 9:35 am #1261537Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Hidden end time issue’ is closed to new replies.
