Home › Forums › Ticket Products › Event Tickets Plus › Buy Ticket/ Add to cart on the List view
- This topic has 5 replies, 2 voices, and was last updated 8 years, 7 months ago by
Stephan.
-
AuthorPosts
-
August 6, 2017 at 11:43 am #1331408
Stephan
ParticipantHi! I’m looking for a way to put the ADD TO CART button (event ticket plus) to every event in the LIST-VIEW (events calender pro). Unfortunately, I could not find anything to help me. Is there a tip?
Thanks
StephanWordpress 4.8.1 / WooCommerce 3.1.1 / Events Calender Pro 4.4.15 / Event Tickets Plus 4.5.3
August 8, 2017 at 7:54 pm #1332559Barry
MemberHi Stephan!
We have some functionality like this already 🙂

If you are using the latest version of Event Tickets Plus you should be able to take advantage of this – and you will find buy now buttons like the one above are added to list view, if tickets are available for the events.
To clarify: does that meet your needs? If not, can you provide some more detail about what you need? I can’t guarantee we can deliver it, but I’d certainly love to learn more!
August 8, 2017 at 10:53 pm #1332640Stephan
ParticipantHi Barry!
Thanks for your message! I already found this funktion, but this is not what i need 🙁I want to but the “real” add-to-cart function to the listview so the customer only has to enter the number of cards and click “Add to cart”.
thanks
stephanAugust 9, 2017 at 3:10 pm #1333126Barry
MemberI see!
Well though I’m not sure this is quite what you’re after, either, perhaps it would be a good starting point that you can build on?
add_action( 'tribe_events_after_the_meta', function() { if ( ! class_exists( 'Tribe__Tickets__Tickets' ) ) { return; } if ( ! tribe_events_has_tickets() ) { return; } foreach ( Tribe__Tickets__Tickets::modules() as $class => $module_name ) { $provider = call_user_func( array( $class, 'get_instance' ) ); $provider->front_end_tickets_form( '' ); } } );This could be added either to a custom plugin (preferred) or else to your theme’s functions.php file — though some final tweaks may be needed to have it match your vision of how things should look.
I hope that helps and good luck with the project!
August 31, 2017 at 9:35 am #1343173Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Buy Ticket/ Add to cart on the List view’ is closed to new replies.
