Buy Ticket/ Add to cart on the List view

Home Forums Ticket Products Event Tickets Plus Buy Ticket/ Add to cart on the List view

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1331408
    Stephan
    Participant

    Hi! 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
    Stephan

    Wordpress 4.8.1 / WooCommerce 3.1.1 / Events Calender Pro 4.4.15 / Event Tickets Plus 4.5.3

    #1332559
    Barry
    Member

    Hi 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!

    #1332640
    Stephan
    Participant

    Hi 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
    stephan

    #1333126
    Barry
    Member

    I 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!

    #1343173
    Support Droid
    Keymaster

    Hey 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

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Buy Ticket/ Add to cart on the List view’ is closed to new replies.