How to display the form of an Event ticket on the event page

Home Forums Ticket Products Event Tickets Plus How to display the form of an Event ticket on the event page

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1275467
    Michael Whaling
    Participant

    To note, I am running the most current version of Events Ticket Plus 4.4.6 and a previous version of Woocommerce 2.6.14.

    Simply put, my issue is I don’t know how to display a ticket pre-registration form on the event page ( /event/<event slug> ). When the ticket is created, there is a sub-uri generated at /event/<event slug>/<form slug> which displays the form that I want to show, but I wanted it to show on /event/<event slug>.

    Basically, I’m extremely confused about a few things:

    1. The documentation says that once a form like that is added, it should automatically drop in on the page, why isn’t it?
    Essentially, we’ve created an event, added tickets to it, and then added the form fields for Attendee Information. I haven’t found anything in the docs about how to programmatically call this form on the single event template, or if there are any action hooks that return it for me.

    2. I did override the single-event.php file via a new file in my theme, but there’s no real good documentation on how to do that.
    This one is super confusing. The docs say to override the single event template you just “copy from events-tickets-plus/src/views/single-event.php”, however, there is absolutely no file with that name in the root, and I dug around some of the subfolders under /views and saw single-event.php within ‘week’ and ‘list’, does this mean I need to reflect that in my theme? Why is it that having it at /tribe-events/single-event.php works when that’s obviously not the path within the plugin? I’m just trying to understand this here.

    3. The contents of our /tribe-events/single-events.php file looks almost 100% like the events-tickets-plus/src/views/wootickets/tickets.php file ( output of our code on page is attached ). Why is it that our tribe-events/single-events.php file trumps the loading of this file when it’s the most relevant to our Woocommerce/Events Tickets Plus setup?

    If I could just get some help figuring out how to programmatically request the ticket pre-registration form, that would solve the majority of my issue, there’s just no documentation on how to query for pieces of an event ticket like that.

    Please help?

    #1276082
    Cliff
    Member

    Hi. Thanks for your detailed question.

    In our forums we keep our threads focused on just one issue at a time to ensure we fully answer each of your questions/issues. Please keep this in mind for the future and start a new thread for your additional questions from this thread. Thanks for your understanding.

    Yes, if you add a ticket on an upcoming event with available quantity, it should display on the Single Event page.

    The only documentation is our Themer’s Guide. You can do whatever you wish in these files, using the original file as a starting point.

    I’d suggest searching for the tribe_events_single_event_after_the_meta action in this file: https://github.com/moderntribe/event-tickets/blob/4.4.6/src/Tribe/Tickets.php

    I hope this information helps. Please let me know if you have any follow-up questions on this topic.

    #1286740
    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 3 posts - 1 through 3 (of 3 total)
  • The topic ‘How to display the form of an Event ticket on the event page’ is closed to new replies.