Posted: October 30, 2013 at 11:26 am
|
Hi there, I have 4 different price points for tickets.. adult, student, 6-12yrs, and free |
|
Hi, The prices are displayed in order, so whatever was entered first in the event editor will be shown first in the drop down. |
|
Yes, in the drop down they are displayed in order… It’s the description box where it displays theprice, it is not choosing my top price but random prices… Sometimes it displays the top price of $ and sometimes it displays the Free price. |
Hi Judy, Can you post a link to the page where it’s displaying the prices so we can understand the issue better? |
|
|
Hi Josh, thanks so much, |
|
I’d like it them to all display the same amount, $7.00 which is the highest price |
|
also, is there a way to display the game start time? I filled out start time in each event …. it doesn’t display. |
Hi Judy, To make this happen there’s a template file that will need to be edited. It’s named event_list_display.php. To get the first price entered in the event editor to display on the page you linked to there’s a line of code that needs to be adjusted a bit: <?php echo $org_options['currency_symbol'].$event->event_cost; ?> gets changed to: <?php echo $org_options['currency_symbol'].do_shortcode('[EVENT_PRICE event_id="'.$event_id.'" number="0"]'); ?> The time can be added with this code: <p id="event_time-<?php echo $event_id ?>"><span class="section-title"><?php _e('Time:', 'event_espresso'); ?></span> <?php echo do_shortcode ('[EVENT_TIME event_id="'.$event_id.'" type="start_time" format="g:i a"]') .' - '. do_shortcode ('[EVENT_TIME event_id="'.$event_id.'" type="end_time" format="g:i a"]'); ?></p> Once you have these customizations in place you can copy the event_list_display.php to your active WordPress theme’s folder and your modified file will load from there. This way your changes will not get deleted when you update Event Espresso. |
|
|
Thanks Josh, where do I find this template file? Am I editing through WordPress or my file manager on my server? |
The file manager is a better choice than the WP editor. An even better choice is an FTP client with a text editor. The file in question is in the wp-content/plugins/event-espresso/templates folder. |
|
|
Well 7 out of 8 games changed to the price I wanted.. the last one is still stuck on FREE EVENT |
The code you changed forces Event Espresso to display the first event price entered. So in the previous examples I’d guess you input the prices in the order mentioned ‘Prices are $7, $5, $3 and free’ did you also do so for the event that still displays ‘Free Event’? |
|
|
I’m having the same problem. I’m not technically gifted at all so can you explain how I get to the template file in order to change those codes? |
|
@scarter1208, you will need ftp access to your files. You can either use the ftp client built in to your host’s cpanel, or use the instructions from your host to connect an ftp client on your local machine, such as filezilla, to your host’s server. |
|
Hi all.. my apologies for not answering earlier, I was away at a funeral. All prices were put in order from $7 first, then $5 then $3 then free for all events…. while all corrected after putting in the code that was given to me… my last event is still showing up as FREE EVENT. I deleted the member pricing thinking maybe that was an issue but it is not…. |
Hi Judy, This is very strange. Can you try changing one more line of code? In event_list_display.php (the one you’ve already made a change to) on line 63 there is this: $event->event_cost = empty($event->event_cost) ? '' : $event->event_cost; can you change it to this: $event->event_cost = do_shortcode('[EVENT_PRICE event_id="'.$event_id.'" number="0"]') |
|
|
Thank you, that did the trick!! |
The support post ‘Event Description’ 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.