Help Desk

Show "Sold Out" for a Sold Out Event

  • Posts: 4 Topics: 5
    | Permalink

    I’m trying to change the formatting on events that have sold out in Eventbrite, but can’t find the right bit of code to look that information up. I downloaded the Event Tickets add-on and tried

    <?php if ( tribe_events_has_soldout() ) : ?>
    <– code here –>
    <?php endif; ?>

    But that didn’t seem to work. Any advice would be appreciated.

    Posts: 5124 Topics: 11
    | Permalink

    Hi Maryam!

    Thanks for reaching out to us! Let me help you with that.

    First, please note that we are limited in how much support we can give for custom development questions like that.

    That said, we always like helping out and at least point users into the right direction as much possible.

    As a start, let me point you to our themer’s guide that will explain how you can customize our templates > https://theeventscalendar.com/knowledgebase/themers-guide/

    I’m not really sure where you are trying to change that information. Is it in the single event page or elsewhere? Please let me know so I can see if there is a particular template you would have to customize.

    Thanks,
    Victor

    Posts: 4 Topics: 5
    | Permalink

    Hi Victor,

    Essentially what I’m trying to do is conditionally change the text of the
    link to our event pages from “Tickets” to “Sold Out” depending on whether
    we have tickets or not. Here’s the page for reference:
    http://caveat.nyc/events/

    I found this bit of code in your documentation to see whether a given event
    has tickets or is sold out:
    https://theeventscalendar.com/knowledgebase/adding-sold-out-notices-in-list-view/.
    But when I try to implement it on my site, it reads every event as having 0
    tickets available and 0 tickets sold. Could you advise on what might be the
    problem? Is this an Eventbrite Tickets compatibility issue?

    Thank you,
    Maryam

    Posts: 5124 Topics: 11
    | Permalink

    Hi Maryam!

    Thanks for clearing that out!

    I haven’t noticed that you were actually referring only to Eventbrite’s event tickets.

    Unfortunately, you won’t be able to make use of the Event Tickets functions as all the ticket information is fetched from Eventbrite and not saved into your site’s database.

    The article you share will only be of use for events created using Event Tickets.

    We do have an extension that will allow you to customize specific areas of an EventBrite event page here > https://theeventscalendar.com/extensions/eventbrite-additional-options/

    I hope that helps!

    Best!
    Victor

    Posts: 7
    | Permalink

    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

    | Permalink

The topic ‘Show "Sold Out" for a Sold Out Event’ is closed to new replies.