Support

Home Forums Event Espresso Premium Price dropdown order / Price in page lists

Price dropdown order / Price in page lists

Posted: April 20, 2014 at 9:02 am


Stephen Lavallee

April 20, 2014 at 9:02 am

I need the my prices to appear in the dropdown from highest to lowest….just the way I enter them. This is happening correctly, but the price on the list pages shows the smallest price as the event price…or actually, it seems kind of random….I have one event showing the smallest price first, and another showing the second to smallest price first. I need the top (first, largest) price to appear as the event price.

Help, thanks.


Dean

April 21, 2014 at 12:49 am

Hi Stephen,

The template should show the first price entered. One of the developers created a couple of scripts that can change this to either show a list of prices or a range (e.g. $5-$25).

List – https://gist.github.com/Apina/674700c14fe7d751be75
Range – https://gist.github.com/Apina/49b614dbbb5e5efea65d

These can be added to your themes functions.php file or to a custom functions file or plugin.


Stephen Lavallee

April 25, 2014 at 2:15 pm

Hi Dean- I thought that’s what it should do….but it’s not. It looks like it’s showing the last price I enter. The problem is, I want the same price to show on the events list page and the first one visible on the registration page dropdown. If I enter the price that I want visible on the list page last…it then shows up last in my pricing dropdown. I don’t want to show a range or a list of prices on the list page. Thanks!


Stephen Lavallee

April 25, 2014 at 6:38 pm

Actually, it’s not the last one….it seems to be random. I just reentered all the prices for one of my events, and it is now showing the 3rd out of 10 on the list page.??


Stephen Lavallee

April 26, 2014 at 7:23 am

Fixed the problem. On line 70 of event_list_display.php, I removed:
$event->event_cost;
and replace it with:
do_shortcode('[EVENT_PRICE event_id=' . $event_id . ' number="0"]');
So now its pulling in the first item of the price range array.

Whew.


Dean

April 26, 2014 at 7:54 am

Hi Stephen,

Sorry about that, I will do some further testing as it shouldn’t do that, but glad you found a workaround.

The support post ‘Price dropdown order / Price in page lists’ 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