Support

Home Forums Event Espresso Premium Multiple tickets on payment_overview

Multiple tickets on payment_overview

Posted: November 26, 2014 at 10:48 am

Viewing 8 reply threads


Tom Canfield

November 26, 2014 at 10:48 am

Hi Josh,

We’re trying to get multiple tickets to appear on the payment_overview.php. We currently have the single ticket appearing great, thanks to the post below.

Following the link here –
https://eventespresso.com/topic/display-links-to-all-tickets-purchased-on-confirmation-page/

Can you confirm please where the ‘MER-tickets.php’ (https://gist.github.com/joshfeck/945cd05eb792c74481b4) should be placed in the files, so we can get it to loop through for each attendee? uploads/espresso/templates?
The code doesn’t seem to differ from the payment-overview.php code that we’ve implemented, has there got to be any changes made?

Thanks.


Lorenzo Orlando Caum

  • Support Staff

November 26, 2014 at 2:13 pm

Hi Tom,

Those examples are similar but the second one also shows the ticket type:

https://gist.github.com/joshfeck/945cd05eb792c74481b4


Lorenzo


Tom Canfield

November 26, 2014 at 3:02 pm

Thanks Lorenzo

How do we show multiple tickets here?
http://screencast.com/t/74RsgaP8W


Tony

  • Support Staff

November 27, 2014 at 4:55 am

Hi Tom,

Are you using Standard Registration or Multi Event Registration?


Tom Canfield

November 27, 2014 at 8:12 am

Thanks Tony,

We’re using Multi Event Registration.


Tony

  • Support Staff

November 27, 2014 at 11:21 am

Josh’s function does display all of the tickets for a registration for me.

First function – http://take.ms/4DE6e
Second function – http://take.ms/JUhJM

That was a triple registration (3 of a single ticket), requiring personal info for additional attendees.

Can you explain the exact steps you are taking to run through the registration please.


Tom Canfield

November 27, 2014 at 3:04 pm

Thanks Tony,

We have used the second function here in the payment_overview.php – http://screencast.com/t/SN8Ndz5BdeXq
MER is active, but no other code has be altered for this.

The registration process is for individual events, but with multiple ticket price options (e.g. Adult, Child, Senior, etc). So 2 adults, and 2 children, and 1 senior are not displaying as the 5 different individual tickets, or 3 different ticket priced options.

From looking at your second function screenshot http://take.ms/JUhJM, I’ve noticed they are 3 tickets for the same price ‘member admission’. All we are getting on the end result is the last attendee details e.g. Tester5.

Is it possible to have the different ticket prices shown using that code?

Thanks.


Tony

  • Support Staff

November 27, 2014 at 4:10 pm

Heres a single event with multiple ticket types – http://take.ms/mvFBt

However in this screenshot http://screencast.com/t/SN8Ndz5BdeXq I noticed you are missing the opening and closing parentheses for the foreach loop.

Here is my code:

get_results( $wpdb->prepare( $sql, $payment_data['attendee_session'] ));
		foreach ($attendees as $attendee) {
			?>
		
Ticket Link: id); ?>
Ticket Type: price_option; ?>

Pay close attention to the { and } brackets before and after the table tag.


Tom Canfield

November 28, 2014 at 4:31 am

Thanks Tony,

All working now, thank you!

Viewing 8 reply threads

The support post ‘Multiple tickets on payment_overview’ 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