Support

Home Forums Event Espresso Premium Price showing the last entered instead of the first in the event list

Price showing the last entered instead of the first in the event list

Posted: May 7, 2013 at 5:28 pm


PSOTR

May 7, 2013 at 5:28 pm

I have two prices set up for my workshop.  The first is for one person and the second is for two people.  In the event list page it shows the price for two people and I would like it to show the base price for one person. I don’t want to add for two people first and one person last because in the drop down menu when you order the two people price is the first to appear.

Is there a way to have it show the first price I enter and not the last?

I did see a previous forum post to correct this but I cannot find the code in the files that I need to change.  I assume this is an expired post and not valid.  Here is the link to the one I am referring to https://eventespresso.com/forums/2012/04/standard-pricing-not-consistant/


Josh

  • Support Staff

May 8, 2013 at 10:42 am

The code in the other post is still valid. If you look in event_list_display.php ~ line 70 you’ll see the line that displays the price.


PSOTR

May 8, 2013 at 11:34 am

For the life of me I cannot find it.  I went to line 70 and I do not see it.  I use the search function and any part of this code

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

is not present in the event_list_display.php file.

Can you send me the file with it highlighted so that I can edit it?

Thanks!


PSOTR

May 8, 2013 at 11:37 am

<!–?php
//This is the event list template page.
//This is a template file for displaying an event lsit on a page.
//There should be a copy of this file in your wp-content/uploads/espresso/ folder.
/*
* use the following shortcodes in a page or post:
* [EVENT_LIST]
* [EVENT_LIST limit=1]
* [EVENT_LIST show_expired=true]
* [EVENT_LIST show_deleted=true]
* [EVENT_LIST show_secondary=true]
* [EVENT_LIST show_recurrence=true]
* [EVENT_LIST category_identifier=your_category_identifier]
*
* Example:
* [EVENT_LIST limit=5 show_recurrence=true category_identifier=your_category_identifier]
*
*/
$first_event_instance = $events_group[0];
$first_event_excerpt = array_shift(explode('<!–more–>', html_entity_decode($first_event_instance['event_desc'])));

?&gt;

 

//
Register Now

 

 

 

Sold Out


PSOTR

May 8, 2013 at 11:38 am

Oops, I tried to paste the whole code form the PHP file but it didn’t seem to display properly


Josh

  • Support Staff

May 8, 2013 at 11:50 am

Are you looking in /templates/event_list_display.php? Here is a screenshot with the code highlighted on line 70:

screenshot

The support post ‘Price showing the last entered instead of the first in the event 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