Home › Forums › Ticket Products › Event Tickets Plus › This event has passed / tickets not yet available
- This topic has 13 replies, 5 voices, and was last updated 9 years, 7 months ago by
Support Droid.
-
AuthorPosts
-
July 26, 2016 at 12:26 pm #1144339
Jonathan
ParticipantThis doesn’t seem very semantic. The event is over, and the tickets-unavailable class outputs “tickets not YET available.”
July 26, 2016 at 8:22 pm #1144480Geoff B.
MemberGood evening Jonathan and welcome back!
Thank you for reaching out to us.
I would love to help you with this topic.You will probably find that this happens mostly with events where there is a ticket sale start and/or end date.
Depending on what you prefer, you might:
- Simply hide those messages with CSS
- Remove them altogether from the code – using a template customization.
Let me know what you would prefer.
Have a great day!
Geoff B.
July 27, 2016 at 6:26 am #1144552Jonathan
ParticipantI can certainly remove them with CSS, but in instances where I’ve posted an event that doesn’t yet have tickets available, it would be handy. It just shouldn’t show up after the event is over. It doesn’t make sense. Hopefully this is an item you can roll into the next release.
July 27, 2016 at 4:09 pm #1144904Geoff B.
MemberHey Jonathan,
Thank you for writing back.
Actually, you could completely customize this to your needs using a snippet in your Child Theme’s functions.php
The function in charge of the triggers can be found at line 1272 of /the-events-calendar/vendor/tickets/src/Tribe/Tickets.php
A simple filter should do the trick.
That being said, I can totally see how this would be a cool feature to have.
If you don’t mind, could you please suggest it here: https://tribe.uservoice.com/forums/195723-feature-ideasThis way other users can vote on it too.
Let me know if you need help with the snippet.
Best regards,
Geoff B.
July 28, 2016 at 8:23 am #1145110Jonathan
ParticipantI don’t read php, but it appears that the code below should function as I thought.
My event has passed, but it states, “Tickets are not yet available” instead of, “Tickets are no longer available.”
Code:
/** * Returns a tickets unavailable message based on the availability slug of a collection of tickets * * @since 4.2 * * @param array $tickets Collection of tickets * * @return string */ public function get_tickets_unavailable_message( $tickets ) { $availability_slug = $this->get_availability_slug_by_collection( $tickets ); $message = null; if ( 'availability-future' === $availability_slug ) { $message = __( 'Tickets are not yet available.', 'event-tickets' ); } elseif ( 'availability-past' === $availability_slug ) { $message = __( 'Tickets are no longer available.', 'event-tickets' ); } elseif ( 'availability-mixed' === $availability_slug ) { $message = __( 'There are no tickets available at this time.', 'event-tickets' ); } /** * Filters the unavailability message for a ticket collection * * @var string Unavailability message * @var array Collection of tickets */ $message = apply_filters( 'event_tickets_unvailable_message', $message, $tickets ); return $message; } // end HelpersJuly 28, 2016 at 8:34 am #1145116Jonathan
ParticipantLink to my event: https://thrownstone.org/event/fields-blue-glow/
Attached image shows the past date set for it.
-
This reply was modified 9 years, 9 months ago by
Jonathan.
July 28, 2016 at 8:42 am #1145123Jonathan
ParticipantLink to my event: https://thrownstone.org/event/fields-blue-glow/
Attached image shows the past date set for it.
July 28, 2016 at 12:59 pm #1145296Geoff B.
MemberGood afternoon Jonathan,
Thank you for writing back, for the link and for the screenshot.
You are absolutely right. For past events, it should read exactly as you said.
I have researched this some more and it turns out it is a bug!
Unfortunately, I cannot commit to a release date for a fix at this point. But you will be contacted as soon as there is one.Thank you for bringing this to our attention.
Best regards,
Geoff B.
July 28, 2016 at 1:18 pm #1145306Jonathan
ParticipantWoohoo! I caught a bug!
July 29, 2016 at 7:02 am #1145513Geoff B.
MemberGood morning Jonathan,
I wish all of our customers loved bugs as much as you do 😉
Thank you for finding this.
On our end, we actually don’t like bugs, but we do enjoy squashing them 🙂
Have a good week-end,
Geoff B.
August 20, 2016 at 9:35 am #1154025Support 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 TeamAugust 31, 2016 at 11:04 am #1158343Geoff
MemberHey there, Jonathan! Just a heads up that we released Event Tickets and Event Tickets Plus 4.2.6 moments ago and it included a fix for this issue(with a hat-tip to you). Please do update when you have the chance and definitely let us know if you continue to have any issues at all.
Thanks so much for reporting this and for your patience while we worked on a fix. 🙂
Cheers!
GeoffSeptember 22, 2016 at 9:35 am #1167468Support 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 ‘This event has passed / tickets not yet available’ is closed to new replies.
