Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Multiple Ticket Types not Transferring to Checkout | Event Espresso - Staging Server

Support

Home Forums Event Espresso Premium Multiple Ticket Types not Transferring to Checkout

Multiple Ticket Types not Transferring to Checkout

Posted: March 31, 2014 at 11:24 am

Viewing 10 reply threads


tcleverly

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.


tcleverly

March 31, 2014 at 12:16 pm

After searching through the code I found

if ( $item['attendee_questions'] != '' ) {

is causing the issue, but when commented out the second attendee doesn’t have any of the attendee questions


tcleverly

March 31, 2014 at 12:20 pm

The page I’m editing is registration_page_attendee_information.template.php in modules > single_page_checkout > templates


Lorenzo Orlando Caum

  • Support Staff

March 31, 2014 at 12:39 pm

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?


Lorenzo


tcleverly

March 31, 2014 at 12:43 pm

http://sdafterparty.com/events/rock-roll-retreat/


tcleverly

March 31, 2014 at 12:44 pm

I updated to the latest version this morning, but I have had this issue on all versions of EE4


Lorenzo Orlando Caum

  • Support Staff

March 31, 2014 at 1:04 pm

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?


Lorenzo


tcleverly

March 31, 2014 at 1:10 pm

Yes that is true about multiple attendee information but the list of tickets that are being purchased is only showing the first one.

<code>&lt;?php 
					$new_prev_ticket = &#039;&#039;; 
					foreach ($event_queue[&#039;items&#039;] as $new_line_item =&gt; $new_item) { 
						  		if ( $new_item[&#039;ticket&#039;]-&gt;ID() != $new_prev_ticket ) { 
					?&gt;
						&lt;tr&gt;
							&lt;td&gt;
								&lt;?php
									echo $new_item[&#039;ticket&#039;]-&gt;name();
									echo $new_item[&#039;ticket&#039;]-&gt;description() ? &#039;&lt;br/&gt;&#039; . $new_item[&#039;ticket&#039;]-&gt;description() : &#039;&#039;;
								?&gt;
							&lt;/td&gt;
							&lt;td class=&quot;jst-cntr&quot;&gt;&lt;?php echo $ticket_count[ $new_item[&#039;ticket&#039;]-&gt;ID() ];?&gt;&lt;/td&gt;
							&lt;td class=&quot;jst-rght&quot;&gt;&lt;?php echo EEH_Template::format_currency( $new_item[&#039;ticket&#039;]-&gt;price(), FALSE, FALSE );?&gt;&lt;/td&gt;
							&lt;td class=&quot;jst-rght&quot;&gt;&lt;?php echo EEH_Template::format_currency( $new_item[&#039;ticket&#039;]-&gt;price() * $ticket_count[ $new_item[&#039;ticket&#039;]-&gt;ID() ] );?&gt;&lt;/td&gt;
						&lt;/tr&gt;
						&lt;?php $new_prev_ticket = $new_item[&#039;ticket&#039;]-&gt;ID();  ?&gt;
						&lt;?php } ?&gt;
					&lt;?php } ?&gt;</code>

I added this to temporarily fix the issue. The full code looks like this:

<code>&lt;div class=&quot;spco-ticket-info-dv&quot;&gt;
				&lt;h4&gt;&lt;?php _e(&#039;Ticket Details&#039;, &#039;event_espresso&#039;);?&gt;&lt;/h4&gt;
				&lt;table&gt;
					&lt;tr&gt;
						&lt;th scope=&quot;col&quot; width=&quot;&quot;&gt;&lt;?php _e(&#039;Ticket Name and Description&#039;, &#039;event_espresso&#039;);?&gt;&lt;/th&gt;
						&lt;th scope=&quot;col&quot; width=&quot;5%&quot; class=&quot;jst-cntr&quot;&gt;&lt;?php _e(&#039;Qty&#039;, &#039;event_espresso&#039;);?&gt;&lt;/th&gt;
						&lt;th scope=&quot;col&quot; width=&quot;15%&quot; class=&quot;jst-rght&quot;&gt;&lt;?php _e(&#039;Price&#039;, &#039;event_espresso&#039;);?&gt;&lt;/th&gt;
						&lt;th scope=&quot;col&quot; width=&quot;15%&quot; class=&quot;jst-rght&quot;&gt;&lt;?php _e(&#039;Total&#039;, &#039;event_espresso&#039;);?&gt;&lt;/th&gt;
					&lt;/tr&gt;
					&lt;tr class=&quot;hidden&quot;&gt;
						&lt;td&gt;
						&lt;?php
							echo $item[&#039;ticket&#039;]-&gt;name(); 
							echo $item[&#039;ticket&#039;]-&gt;description() ? &#039;&lt;br/&gt;&#039; . $item[&#039;ticket&#039;]-&gt;description() : &#039;&#039;; 
						?&gt;
						&lt;/td&gt;
						&lt;td class=&quot;jst-cntr&quot;&gt;&lt;?php echo $ticket_count[ $item[&#039;ticket&#039;]-&gt;ID() ];?&gt;&lt;/td&gt;
						&lt;td class=&quot;jst-rght&quot;&gt;&lt;?php echo EEH_Template::format_currency( $item[&#039;ticket&#039;]-&gt;price(), FALSE, FALSE );?&gt;&lt;/td&gt;
						&lt;td class=&quot;jst-rght&quot;&gt;&lt;?php echo EEH_Template::format_currency( $item[&#039;ticket&#039;]-&gt;price() * $ticket_count[ $item[&#039;ticket&#039;]-&gt;ID() ] );?&gt;&lt;/td&gt;
					&lt;/tr&gt;
					&lt;?php 
					$new_prev_ticket = &#039;&#039;; 
					foreach ($event_queue[&#039;items&#039;] as $new_line_item =&gt; $new_item) { 
						  		if ( $new_item[&#039;ticket&#039;]-&gt;ID() != $new_prev_ticket ) { 
					?&gt;
						&lt;tr&gt;
							&lt;td&gt;
								&lt;?php
									echo $new_item[&#039;ticket&#039;]-&gt;name();
									echo $new_item[&#039;ticket&#039;]-&gt;description() ? &#039;&lt;br/&gt;&#039; . $new_item[&#039;ticket&#039;]-&gt;description() : &#039;&#039;;
								?&gt;
							&lt;/td&gt;
							&lt;td class=&quot;jst-cntr&quot;&gt;&lt;?php echo $ticket_count[ $new_item[&#039;ticket&#039;]-&gt;ID() ];?&gt;&lt;/td&gt;
							&lt;td class=&quot;jst-rght&quot;&gt;&lt;?php echo EEH_Template::format_currency( $new_item[&#039;ticket&#039;]-&gt;price(), FALSE, FALSE );?&gt;&lt;/td&gt;
							&lt;td class=&quot;jst-rght&quot;&gt;&lt;?php echo EEH_Template::format_currency( $new_item[&#039;ticket&#039;]-&gt;price() * $ticket_count[ $new_item[&#039;ticket&#039;]-&gt;ID() ] );?&gt;&lt;/td&gt;
						&lt;/tr&gt;
						&lt;?php $new_prev_ticket = $new_item[&#039;ticket&#039;]-&gt;ID();  ?&gt;
						&lt;?php } ?&gt;
					&lt;?php } ?&gt;
				&lt;/table&gt;
			&lt;/div&gt;</code>


tcleverly

March 31, 2014 at 1:12 pm

<pre class=”brush: php; gutter: true; first-line: 1; highlight: []; html-script: false”>
<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>


tcleverly

March 31, 2014 at 1:19 pm

[code language=”php”]<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]


Lorenzo Orlando Caum

  • Support Staff

March 31, 2014 at 4:19 pm

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
http://cl.ly/image/2k2u3f2j2N45

Hope this helps!


Lorenzo

Viewing 10 reply threads

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.

Event Espresso - Staging Server