Posted: 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 – 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? Thanks. |
||||
Hi Tom, Those examples are similar but the second one also shows the ticket type: https://gist.github.com/joshfeck/945cd05eb792c74481b4 — |
|||||
|
Thanks Lorenzo How do we show multiple tickets here? |
||||
Hi Tom, Are you using Standard Registration or Multi Event Registration? |
|||||
|
Thanks Tony, We’re using Multi Event Registration. |
||||
Josh’s function does display all of the tickets for a registration for me. First function – http://take.ms/4DE6e 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. |
|||||
|
Thanks Tony, We have used the second function here in the payment_overview.php – http://screencast.com/t/SN8Ndz5BdeXq 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. |
||||
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) { ?>
Pay close attention to the { and } brackets before and after the table tag. |
|||||
|
Thanks Tony, All working now, thank you! |
||||
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.