Sold Out Events

Home Forums Ticket Products Event Tickets Plus Sold Out Events

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #55906
    wineschool
    Participant

    I need to be able to hide sold out events from the Calendar. How do I do that? It doesn’t seem like the WooCommerce option to hide sold out items is working with TEC.

    I also need to be able to mark events as SOLD OUT in the title of the event or in the first line of the description.

    Yes, these two issues are mutually exclusive concepts, but we need to be able to do both.

    #55969
    Barry
    Member

    We may not be able to help with these items right now – simply because they are customizations and we don’t guarantee to be able to assist with those (though we’ll definitely try). We’re having to be a little stricter about this than normal due to heavy demand for support right now, but we will certainly see if we can get you started.

    Can I ask however that you choose one of these two customizations to pursue in this thread and then create a separate thread for the other issue?

    It would also be great to get just a little more detail:

    * Where should events be marked as sold out? In the upcoming events list? In the single event page only?
    * Should sold out events be hidden from just the calendar (month view) or also from other views (which)?

    Please also note that I will not be available tomorrow and so it could be early next week before I can take a good look at what you want here – unless of course another team member is able to step in (and please accept our apologies for any delay that causes).

    Thanks!

    #55988
    wineschool
    Participant

    Appreciate the response. This is mission critical for me, so I greatly appreciate the help.

    Let’s focus on adding a “Sold Out” notice on event pages other than the single event page.

    Events would be marked as SOLD OUT in the List View, Calendar View, and Month view. The wording would be between the DATE and EXCERPT.

    Here is an example of what I am looking to do: http://208.82.128.47/wp-content/uploads/2013/07/wsop-soldout-classes.jpg

    Cheers.

    #56497
    Barry
    Member

    So let’s look at list view first of all.

    • Please grab this snippet and add it to your theme’s functions.php file
    • Please also add this snippet to the same place
    • Note that if you have already added these (perhaps from following advice in a different thread) you should not add them a second time
    • You then need to add a further piece of code that leverages the above functions and figures out A) if the event has any tickets and B) if there is no inventory available and then C) adds an appropriate message. Here is a basic example that you would also add to functions.php

    Does that help here?

    #56686
    wineschool
    Participant

    Whoop! Barry you are a GOD. That works well, for both the photo and list views. How do I get this same language onto the calendar?

    #56699
    Barry
    Member

    So basically we can just build on that and reuse the same functions. The easiest way to work this into the calendar/grid view is probably to override month/single-event.php … so:

    • Copy this template: the-events-calendar/views/month/single-event.php
    • Place your copy in: YOUR_THEME/tribe-events/month/single-event.php
    • Change it to something like this
    #56823
    wineschool
    Participant

    Thank you so much for walking me through the logic of TEC and wootickets. I greatly appreciate the help.

    #56845
    Barry
    Member

    Not at all. Various other permutations are possible, but I’ll leave it to your imagination to do anything further along these lines 🙂

    #979359
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Sold Out Events’ is closed to new replies.