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
call ticket names & prices | Event Espresso - Staging Server

Support

Home Forums Event Espresso Premium call ticket names & prices

call ticket names & prices

Posted: March 6, 2013 at 11:21 am

Viewing 5 reply threads


Zoe

March 6, 2013 at 11:21 am

Hello! We’re not using registration but I’d still like to display the ticket names and prices on the main event detail page. I can’t see the code for this anywhere in registration_page_display.php – can you tell me where I can find it so I can pop it in?

Cheers :)


Dean

  • Support Staff

March 7, 2013 at 12:55 am

Hi,

The code you are looking for is

<?php
$price_label = '<span class="section-title">'.__('Choose an Option: ', 'event_espresso').'</span>';
?>
<p class="event_prices">
<?php do_action( 'espresso_price_select', $event_id, array('show_label'=>TRUE, 'label'=>$price_label) );?>
</p>


Zoe

March 7, 2013 at 2:11 am

Thanks Dean, is there a way to simply print out the name & price? As we’re not using the registration side yet a drop down isn’t really appropriate…

Cheers,

Zoe


Dean

  • Support Staff

March 7, 2013 at 9:40 am

Hi,

There is the Event Price shortcode

http://staging.eventespresso.com/wiki/shortcodes-template-variables/#event-price

Event price Number is the number of the result you want to display.
For example: 0 is the first instance of the price array, 1 would be
the second price in the array. [EVENT_PRICE event_id=1 number=0]
Template Code:



Zoe

March 10, 2013 at 1:32 pm

For some reason adding that line of code causes my template to break, when I load a single event page it just loads a completely white page, no WP theme or anything…

Zoe


Dean

  • Support Staff

March 11, 2013 at 12:10 am

Hi,

There is a small typo in the code (a space) which may be causing that

<?php echo do_shortcode('[EVENT_PRICE event_id="'.$event_id.'"
number="0"]');?>
Viewing 5 reply threads

The support post ‘call ticket names & prices’ 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