Function to view the tickets front form

Home Forums Ticket Products Event Tickets Plus Function to view the tickets front form

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #994806
    Florent
    Participant

    Hi

    I need to add the tickets front form on particular page. Is a function exist to do that ? (like view_frot_form( $event_id) for example?

    If not how to generate this form?

    Thansk in advance

    #994825
    George
    Participant

    Hey Florent!

    You should indeed be able to add this function to show the ticket form for a specific event:

    <?php tribe_get_ticket_form(); ?>

    Now, it’s important to note that this is not officially supported for use on other parts of your site – so there is no guarantee that for your specific customizations, the tickets will still work fine in terms of being able to buy them and such.

    If you find this to be the case, and need more complex customizations, then unfortunately you will have to code your own solution 🙁

    Let me know if the function above helps!

    Cheers,
    George

    #994930
    Florent
    Participant

    Hi,

    Don’t understand what this function made …

    I have code my own solution with

    $wootickets = Tribe__Events__Tickets__Woo__Main::get_instance();
    $ticket_ids = $wootickets->get_tickets_ids( $eventid );
        foreach ( $ticket_ids as $ticket_id ) {
            $ticket = $wootickets->get_ticket($postId, $ticket_id);
    ...

    Thanks

    • This reply was modified 8 years, 7 months ago by Florent.
    #995155
    George
    Participant

    Okay, thanks for sharing Florent! Best of luck with your site.

    — George

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Function to view the tickets front form’ is closed to new replies.