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

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

March 7, 2013 at 9:40 am

Hi,

There is the Event Price shortcode

https://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

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