Support

Home Forums Event Espresso Premium Default Price on Event List inconsistent

Default Price on Event List inconsistent

Posted: May 16, 2013 at 12:17 pm

Viewing 1 reply thread


Tracy Rice

May 16, 2013 at 12:17 pm

The default price that shows on the Event List is inconsistent.  Sometimes it shows the cheapest price, other times it shows the highest price:

http://www.bravooutings.com/book-now/

For example, on the Robert Plant listing, it shows $129 as the cost, even though there is an initial price of $79.

I took a look at event_list.php and event_list_display.php and found this:

[code language=php]’event_cost’ => empty($event->event_cost) ? ” : $event->event_cost[/code]

But that seems accurate.  Any ideas?


Josh

  • Support Staff

May 17, 2013 at 7:50 am

Hi Tracy,

In this case it’s displaying the Reserved Price for $129.00, which is the 2nd price that’s in the price list for this event. There are a few tweaks you can make to the event list so it displays a price list, a price range, or the first price in the list.

Here is a function you can add to a custom function file that will allow you to display a list of prices:

https://gist.github.com/sethshoultes/ab1e992668cf3166a686

and another function that displays a price range:

https://gist.github.com/sethshoultes/f05ae8b0c2f549a94d67

If you’d like to display only the *first* price in the list, you can use the EVENT_PRICE shortcode. If you go into the template that’s displaying the list of events, you can swap in this code where the price is displayed:

//<?php echo  $org_options['currency_symbol'].$event->event_cost; ?>

// the above default gets replaced with:

<?php echo  $org_options['currency_symbol'].do_shortcode('[EVENT_PRICE event_id="'.$event_id.'" number="0"]'); ?>
Viewing 1 reply thread

The support post ‘Default Price on Event List inconsistent’ 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