Posted: March 31, 2014 at 11:24 am
|
I have two ticket types, Runner and Non-Runner. Non-Runner ticket price is $97 and Runner is $47. So I created two ticket types with different prices. When I go to purchase the tickets I select a quantity of 1 for each ticket type but only the first ticket created will show up in the checkout. I am using EE4. |
|
After searching through the code I found
is causing the issue, but when commented out the second attendee doesn’t have any of the attendee questions |
|
The page I’m editing is registration_page_attendee_information.template.php in modules > single_page_checkout > templates |
Hello, Are you running the latest version of the Event Espresso software? Could you please temporarily reverse your edits and link to the event so I can take a look? — |
|
|
|
|
I updated to the latest version this morning, but I have had this issue on all versions of EE4 |
Okay, I thought the additional tickets were being disregarded. They are calculated during checkout but are not immediately shown on that page — only the first ticket is shown. There is a message that lets registrants know about this but it looks like it was set to white text making it hidden: http://cl.ly/image/0h193i0p3v2J Did you make that change? — |
|
|
Yes that is true about multiple attendee information but the list of tickets that are being purchased is only showing the first one. <code><?php $new_prev_ticket = ''; foreach ($event_queue['items'] as $new_line_item => $new_item) { if ( $new_item['ticket']->ID() != $new_prev_ticket ) { ?> <tr> <td> <?php echo $new_item['ticket']->name(); echo $new_item['ticket']->description() ? '<br/>' . $new_item['ticket']->description() : ''; ?> </td> <td class="jst-cntr"><?php echo $ticket_count[ $new_item['ticket']->ID() ];?></td> <td class="jst-rght"><?php echo EEH_Template::format_currency( $new_item['ticket']->price(), FALSE, FALSE );?></td> <td class="jst-rght"><?php echo EEH_Template::format_currency( $new_item['ticket']->price() * $ticket_count[ $new_item['ticket']->ID() ] );?></td> </tr> <?php $new_prev_ticket = $new_item['ticket']->ID(); ?> <?php } ?> <?php } ?></code> I added this to temporarily fix the issue. The full code looks like this: <code><div class="spco-ticket-info-dv"> <h4><?php _e('Ticket Details', 'event_espresso');?></h4> <table> <tr> <th scope="col" width=""><?php _e('Ticket Name and Description', 'event_espresso');?></th> <th scope="col" width="5%" class="jst-cntr"><?php _e('Qty', 'event_espresso');?></th> <th scope="col" width="15%" class="jst-rght"><?php _e('Price', 'event_espresso');?></th> <th scope="col" width="15%" class="jst-rght"><?php _e('Total', 'event_espresso');?></th> </tr> <tr class="hidden"> <td> <?php echo $item['ticket']->name(); echo $item['ticket']->description() ? '<br/>' . $item['ticket']->description() : ''; ?> </td> <td class="jst-cntr"><?php echo $ticket_count[ $item['ticket']->ID() ];?></td> <td class="jst-rght"><?php echo EEH_Template::format_currency( $item['ticket']->price(), FALSE, FALSE );?></td> <td class="jst-rght"><?php echo EEH_Template::format_currency( $item['ticket']->price() * $ticket_count[ $item['ticket']->ID() ] );?></td> </tr> <?php $new_prev_ticket = ''; foreach ($event_queue['items'] as $new_line_item => $new_item) { if ( $new_item['ticket']->ID() != $new_prev_ticket ) { ?> <tr> <td> <?php echo $new_item['ticket']->name(); echo $new_item['ticket']->description() ? '<br/>' . $new_item['ticket']->description() : ''; ?> </td> <td class="jst-cntr"><?php echo $ticket_count[ $new_item['ticket']->ID() ];?></td> <td class="jst-rght"><?php echo EEH_Template::format_currency( $new_item['ticket']->price(), FALSE, FALSE );?></td> <td class="jst-rght"><?php echo EEH_Template::format_currency( $new_item['ticket']->price() * $ticket_count[ $new_item['ticket']->ID() ] );?></td> </tr> <?php $new_prev_ticket = $new_item['ticket']->ID(); ?> <?php } ?> <?php } ?> </table> </div></code> |
|
<pre class=”brush: php; gutter: true; first-line: 1; highlight: []; html-script: false”> |
|
[code language=”php”]<div class=”spco-ticket-info-dv”> |
Alright, I understand now after seeing your site with the edits. Here is how the upcoming version of Event Espresso 4.2 will handle multiple tickets: http://cl.ly/image/2G0W3G2Y3M2W Hope this helps! — |
|
The support post ‘Multiple Ticket Types not Transferring to Checkout’ 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.