Sold Out notice in Grid (Calendar) View

Home Forums Calendar Products Events Calendar PRO Sold Out notice in Grid (Calendar) View

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1631649
    wineschool
    Participant

    In 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.

    #1632993
    Jeremy
    Keymaster

    Hi,

    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,
    Jeremy

    #1633598
    wineschool
    Participant

    Jeremy,

    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.

    #1634199
    Jeremy
    Keymaster

    Hi 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,
    Jeremy

    #1647275
    Support Droid
    Keymaster

    Hey 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

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Sold Out notice in Grid (Calendar) View’ is closed to new replies.