Moving Ticket Form From the Sidebar to the Content

Home Forums Ticket Products Event Tickets Plus Moving Ticket Form From the Sidebar to the Content

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1071617
    Craig
    Participant

    I see.. in the Evenbrite Tickets.. that you posted a thread that answers this question but I couldn’t find similiar code for WooCommerce Tickets.

    I want to move the Woo Commerce Tickets from the sidebar on page…
    https://www.alfownership.com/meeting/hyatt-house-naples-may-19th/?s2-ssl=yes
    to the content area… and found the following code:

    add_action( ‘init’, ‘move_eb_ticket_form’ );

    function move_eb_ticket_form() {
    $display_tickets = array( Tribe__Events__Tickets__Eventbrite__Main::instance(), ‘print_ticket_form’ );
    remove_action( ‘tribe_events_single_event_after_the_meta’, $display_tickets, 9 );
    add_action( ‘tribe_events_single_event_before_the_content’, $display_tickets );
    }

    But I want to modify this code to work for WooCommerce Tickets..

    Can you help?? Thanks so much.

    #1071622
    Craig
    Participant

    I fig’d out the answer.. by searching similar terms from above in my code..

    Here’s the answer:
    in file..
    wp-content\plugins\the-events-calendar\vendor\tickets\src\Tribe\Tickets.php

    there is a line.. that says.. (line 273)
    add_action( ‘tribe_events_single_event_after_the_meta’, array( $this, ‘front_end_tickets_form’ ), 5 );

    change this to
    add_action( ‘tribe_events_single_event_after_the_content’, array( $this, ‘front_end_tickets_form’ ), 5 );

    and it will show below content in the main content area of the single event page, and will disappear from the sidebar.

    Thanks guys..
    Great plugin.

    #1071655
    Geoff
    Member

    Right on and nice work, Craig! Thanks not only for sharing the workaround but for the kind words as well. It’s awesome to hear you’re loving the plugin. 🙂

    Feel free to hit us with a new thread if any other questions pop up and we’d be happy to help!

    Cheers,
    Geoff

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Moving Ticket Form From the Sidebar to the Content’ is closed to new replies.