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.