Support

Home Forums Event Espresso Premium add ticket selector and register all attendees at once

add ticket selector and register all attendees at once

Posted: January 1, 2018 at 5:56 pm

Viewing 1 reply thread


bluelink

January 1, 2018 at 5:56 pm

Hello, I have edited the template of event table view like this http://jordantrail.org/test/
but I have couple of issues first I can’t add ticket selector, I tried to use this template:
https://gist.github.com/joshfeck/e8fcb3946f56490d1384bfcc449caa9b
but it gave me broken template
also I want the users to choose how many quantities they want and register and fill all attendees info at same time
and the ticket name isn’t showing with price.


Tony

  • Support Staff

January 2, 2018 at 6:44 am

but I have couple of issues first I can’t add ticket selector, I tried to use this template:
https://gist.github.com/joshfeck/e8fcb3946f56490d1384bfcc449caa9b
but it gave me broken template

Try this version: https://gist.github.com/Pebblo/ce733c6c53a9dc66e90c0a28f74a06e4/

To output the ticket selector you’ll need to add a column to the table and call something like:

<?php if ( espresso_display_ticket_selector( $post->ID ) && ( is_single() || ( is_archive() && espresso_display_ticket_selector_in_event_list() ))) : ?>			
	<div class="event-tickets" style="clear: both;">
		<?php espresso_ticket_selector( $post ); ?>
	</div>
<?php endif; ?>

also I want the users to choose how many quantities they want and register and fill all attendees info at same time

I’m not sure what this means, can you provide more details.

For the users to register you need to use the ticket selector, users select the quantity of tickets and submit the selection for each event.

When they submit the ticket selection they are directed to the checkout page, on that page, the users enter the attendee info.

and the ticket name isn’t showing with price.

The table view template does not display the price by default, so I’m guessing you’ve added this yourself? If you have the EE_TTicket object you can call the ticket name when you output the price. The ticket selector show all of the pricing options for the event so that column may be redundant when you include that in the table.

Something like $ticket->name();

Viewing 1 reply thread

The support post ‘add ticket selector and register all attendees at once’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso