Support

Home Forums Event Espresso Premium Price column on movie list

Price column on movie list

Posted: May 27, 2014 at 7:10 am

Viewing 1 reply thread


Craig Kirkwood

May 27, 2014 at 7:10 am

Hi guys,

I’m trying to add in a column for price using the movie_list template.

I’m not sure if it’s because of the multiple pricing variables or not but I can’t get the value to show…

Using: <?php echo $event->event_cost ?>
Or: <?php echo $event_cost ?>
or even: <?php echo $event->event_cost[0] ?>

Here is the page as it stands:
AMC Example

Hope you can help…


Tony

  • Support Staff

May 27, 2014 at 9:24 am

Hi Craig,

The current query in use within that template does not join any of the pricing tables to the events, so currently they are not set. The easiest method to pull the pricing information (without altering the query) is using the EVENT_PRICE shortcode:

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

Within the template you could use:

<?php echo do_shortcode('[EVENT_PRICE event_id="'.$event->id.'" number="0"]');?>

To display the first Price entered within each event.

Although this depends on whether or not you have multiple pricing options for your events and how you would like to display those prices (for example within a dropdown or list format)?

Viewing 1 reply thread

The support post ‘Price column on movie list’ 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