Can't Add a Buy Ticket Button on the Events List Page

Home Forums Ticket Products Event Tickets Plus Can't Add a Buy Ticket Button on the Events List Page

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #765043
    konpaevents
    Participant

    This is a follow up to my recent post about the ” Buy Ticket ” button in the event listing page. i followed the step but still can’t get it done.

    #766947
    Barry
    Member

    Hmm. So you basically want to add the ticket form to list view? I can definitely see that as being useful to a few folks … how about adding the following snippet to your theme’s functions.php file?

    function wootix_list_view_ticket_form() {
    	if ( ! class_exists( 'TribeWooTickets' ) ) return;
    	$ticket_form = array( TribeWooTickets::get_instance(), 'front_end_tickets_form' );
    	add_action( 'tribe_events_after_the_content', $ticket_form );
    }
    
    add_action( 'tribe_events_before_loop', 'wootix_list_view_ticket_form' );
    remove_action( 'tribe_events_after_loop', 'wootix_list_view_ticket_form' );

    Let me know if that works for you 🙂

    #814223
    Barry
    Member

    Hi! It’s been a while so I’m going to go ahead and close this thread. If we can help with anything else, though, please don’t hesitate to create new threads as needed. Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Can't Add a Buy Ticket Button on the Events List Page’ is closed to new replies.