Only show events with open registration in month view

Home Forums Ticket Products Event Tickets Plus Only show events with open registration in month view

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1234498
    Christopher
    Participant

    Hi,

    At first, I’m not exactly sure if this is the right forum, I’m sorry when I should have picked another one.

    We have several events all over this year and want them to prepare and publish now. Afterwards we have all the events in the list view so our customers can look up what we will offer this year.
    In general we will set the period for registration for each event just about one month before the event.
    Now we would like to have two pages within our website:
    1) One page where all our events will be displayed, for this we could use the list view.
    2) One page where automatically only those events will be displayed which have an open registration at the moment.

    Is it possible to check within a view template if an event has an open registration and then display it?
    Or is there a shortcode for this? (we only use The Events Calendar, not the Pro version at the moment)
    Or do we have to manually put some text and a link to the event on this page?
    It would be nice if there was an automatically generated solution.

    Many thanks in advance!

    Best regards
    Chris

    #1235137
    Victor
    Member

    Hi Christopher,

    Thanks for getting in touch!

    Unfortunately, there is no default or automatic way to display only those events that have an open registration.

    A workaround for this would be to create a category named “Open for Registration” or similar, and then assign that category to the events that are open. Then, you could link to that category using a url like this: yourdomain.com/events/category/open-for-registration/

    I hope this helps. If you have any other questions on how to accomplish this, let me know and i’ll be happy to help.

    Best!

    Victor

    #1246127
    Christopher
    Participant

    Thanks for your answer and the suggested workaround.
    This could work, but we still have to check if an event is full or not or if the registration date is over.

    Isn’t there any hook or attribute or any information for an event where the expiration date of the registration is saved? Or a flag when the global stock of an event is full?
    With this I could write some php to only show those events that are open.

    #1246448
    Victor
    Member

    Hi Christopher!

    Sure, what you are trying to implement is possible, but not “out-of-the-box” with our plugins unfortunately. So it would require custom coding to implement. While we cannot help with custom coding, I can point you in the right direction to get the “end of sale” date for a ticket.

    First you have to find the tickets attached to an event, which you can do with code like this:

    $tickets = Tribe__Tickets__Tickets::get_all_event_tickets( $event_ID )

    Once you have those tickets, you can see if they’re “open for registration” by looking at the “ticket end sale date” like this:

    $end_sale_date = get_post_meta( $ticket_id, '_ticket_end_date', true );

    I hope that points you in the right direction.

    Best!

    Victor

    #1257383
    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 ‘Only show events with open registration in month view’ is closed to new replies.