Support

Home Forums Event Espresso Premium calendar entry showing max price

calendar entry showing max price

Posted: January 12, 2016 at 9:50 pm

Viewing 5 reply threads


Angus Russell

January 12, 2016 at 9:50 pm

Hi, Our calendar is here http://supersportsevents.me/ and all other events show “Price from:” and have the minimum price which I understand is the default setup.

A new event however is showing the max price! We’ve played with the order since we have a free event, and a variety of different price points, but nothing makes a difference.

Please advise.

We haven’t upgraded to the latest EE version since we’ve made changes and in the middle of the season are afraid to root these out and change again!. However, other new events are not having this problem.

The event in question is the Hatta Hills on Fri 11th March

Thanks
Angus


Angus Russell

January 12, 2016 at 9:51 pm

Sorry – Event Espresso – 3.1.37.5.P


Josh

  • Support Staff

January 13, 2016 at 1:33 pm

Hi Angus,

It looks like your calendar table template may have been altered. Can you open the template in the editor, and check the PHP code that gets the price?

It should look like this:

<?php echo $org_options['currency_symbol'] . espresso_return_single_price($this_event_id, 0); ?>


Angus Russell

January 13, 2016 at 8:56 pm

Hi Josh,

This file “espresso-template-calendar-table/index.php” correct?

currently have this

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

Thanks


Angus Russell

January 13, 2016 at 9:03 pm

Right, sorted it, the line of code was changed in that file, but also our developer had an add-on that used the same line of code, so I have now changed that to the same and it works.

However, it now gives the price as AED0.00! Is there a way to tell it to ignore the zero value if there are other values present?

Thanks


Josh

  • Support Staff

January 14, 2016 at 9:41 am

Not exactly ignore, but what you can do is change that 0 to a 1 where it has ($this_event_id, 0)and it will grab the next price in the array. Or when you enter the prices, you make sure that the first price you enter is the price you want to be displayed.

Viewing 5 reply threads

The support post ‘calendar entry showing max price’ 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