Home › Forums › Calendar Products › Events Calendar PRO › Sold Out notice in Grid (Calendar) View
- This topic has 3 replies, 2 voices, and was last updated 7 years, 6 months ago by
Jeremy.
-
AuthorPosts
-
September 26, 2018 at 3:26 pm #1631649
wineschool
ParticipantIn previous versions of TEC Pro I was able to add a “SOLD OUT” notice in the Calendar View. It no longer works.
This is how I did it:
I created a copy of single-event.php and placed it the folder THEME/tribe-events/month/single-event.php
I added the following code to the event’s
header:
<?php if ( tribe_events_has_soldout() ): ?>
<span class=”tickets-sold-out”> -SOLD OUT!
</span>
<?php endif ?>Barry originally offered me this solution, back in 2013: https://theeventscalendar.com/support/forums/topic/sold-out-events/
Sadly, it no longer works. I really need to have a “Sold Out” notice that works on the Calendar. IT’s one of the core reasons we have been using TEC Pro for 6 years.
September 28, 2018 at 2:59 am #1632993Jeremy
KeymasterHi,
Thanks for reaching out to us!
I just verified, tribe_events_has_soldout() is still a valid function. I tried locally, and could display “Sold out” on an event page where there was no ticket left.
I think the problem might come from the place where you had the code placed. Could you, instead, copy the file located at the-events-calendar/src/views/single-event and place it in [your-theme]/tribe-events/single-event.php? You can then override it by adding the code you mentioned.
Please let me know how it goes.
Cheers,
JeremySeptember 28, 2018 at 7:38 pm #1633598wineschool
ParticipantJeremy,
Thank you for the idea. When I move the single-event.php from
[your-theme]/tribe-events/month to[your-theme]/tribe-events/ it doesn’t change the Calendar/Grid
Instead, it affects the single event page. I need to show a “Sold Out” on events in the calendar/grid.
October 1, 2018 at 12:27 am #1634199Jeremy
KeymasterHi Keith,
I’m sorry, I misread your initial message!
Indeed, the code don’t work anymore on the month view. I’m not sure why though. I’m going to investigate, I’ll let you know as soon as I have the answer.
Thank you for your patience 🙂
Cheers,
JeremyOctober 23, 2018 at 9:35 am #1647275Support 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 ‘Sold Out notice in Grid (Calendar) View’ is closed to new replies.
