Add cart form to event list

Home Forums Ticket Products Event Tickets Plus Add cart form to event list

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1194358
    Norbert
    Participant

    Hallo,
    I would like to offer to my customers to order tickets at the upcomming events list. I need the cart form in the event list to select an add tickets. I hope I found the relevant file tribe-events/list/single-events.php – but unhappily no working snippet. There are several topics in this forum with different explanations but what I miss is a foolproof description. Could you please reveal once more the code, the file and the position to insert.
    Thank you,
    Best
    Norbert

    #1194443
    Nico
    Member

    Hey Norbert,

    Glad to help you here as well!

    If you are running WooCommerce tickets, pasting the following code in your theme’s (or child theme’s) functions.php file will do the trick:

    /*
    * Add tickets form to event listings
    */
    if ( class_exists( 'Tribe__Tickets_Plus__Commerce__WooCommerce__Main' ) ) {
    add_action ( 'tribe_events_after_the_content', array( Tribe__Tickets_Plus__Commerce__WooCommerce__Main::get_instance(), 'front_end_tickets_form' ), 10 );
    }

    If you are using a different e-commerce plugin let me know which one and I’ll adjust the code,
    Best,
    Nico

    #1194569
    Norbert
    Participant

    Hi Nico,
    I’m running The Events Calendar, Event List Plus, WooCommerce (Germanized), Canvas by WooThemes.

    Your trick keeps what it promises,
    thank you!
    Best
    Norbert

    #1195349
    Nico
    Member

    Wooot! Stoked to hear Norbert, thanks for confirming 🙂

    I’ll go ahead and close out this thread, but if you need help with anything else please don’t hesitate to create a new one and we will be happy to assist you.

    Best,
    Nico

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Add cart form to event list’ is closed to new replies.