Add tickets form to event listings

Home Forums Ticket Products Event Tickets Plus Add tickets form to event listings

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1103130
    barback
    Participant

    Somewhere* I found the snippet below, which, when added to my theme’s functions.php file works great in putting the ticket form in the event listing (calendar list view).
    I modified another file to not whisk people off to the cart, so on one page they can select and add to cart tickets for multiple events.

    All is well on that site. Now I want to do a similar thing on a site that uses ETP with Easy Digital Downloads.

    Can anyone help with the code snippet that will work with EDD?

    /*
    * 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 );
    }

    * I also can’t seem to find this again — Searching this forum / knowledgebase is frustrating — I’ve taken to making my own index of useful stuff I stumble across, because I can’t trust that I’ll find it again.

    #1103729
    Josh
    Participant

    Hey Barbara,

    Thanks for reaching out to us!

    You should be able to accomplish this by using the same snippet from above but by changing the 2 WooCommerce references to “Tribe__Tickets_Plus__Commerce__EDD__Main”.

    Let me know if this helps.

    Thanks!

    #1110069
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Add tickets form to event listings’ is closed to new replies.