Posted: January 11, 2014 at 9:05 pm
|
I’m hoping to be able to display all the various prices in the main event page so people can see the difference between Adult Price/ Concession/ Child in the initial overview of the event rather than as a dropdown on the Registration page. Some of the prices vary widely so it will turn potential students off. Thanks again. |
Hi Robin, There is a bit of template hacking that can be done to make this happen. The example code in this gist does exactly what you’re looking to do: |
|
|
Hi Robin, I have the same requirement and tried the code on the link provided and it did not work. I also tries another suggestion of copying registration_page_display.php & registration_page.php to public_html/wp-content/uploads/espresso/templates and adding the following code to line 160 in the display.php file
It did not work either…:( |
Hi Blair, In this case, you should not alter any of the code for registration_page_display.php or registration_page.php. These templates do not load the event list. The one template that needs to have a line of code added is: templates/event_list_display.php line 80 where it says: <p id="p_event_price-<?php echo $event_id ?>" class="event_price"><span class="section-title"><?php echo __('Price: ', 'event_espresso'); ?></span> <?php echo $org_options['currency_symbol'].$event->event_cost; ?></p> you replace the above with: <?php do_action('action_hook_espresso_price_list', $event_id);?> |
|
|
my template folder is emplty, do I need to copy event_list_display.php over? |
|
when I conduct a search I can not find a file called event_list_display.php |
event_list_display.php is in the templates folder of the Event Espresso plugin. It can be copied over to your active WordPress theme’s folder if you’d like to prevent overwriting on an update. |
|
|
That worked to remove the pricing which will help reduce the visitors confusion over event pricing. Do you have a solution for displaying the various prices associated with an event…early bird, regular, member, non-member? |
The solution in Seth’s gist displays the regular and member pricing in a list. Here’s that link again: |
|
|
Hey Josh, Followed Seth’s instructions and I’m getting this error message: Parse error: syntax error, unexpected ‘<‘ in /home/catteven/public_html/wp-content/themes/pagelines/functions.php on line 22 |
|
Hi Blair, The code you added in, try removing the first <?php as this probably already exists in the file.
|
The support post ‘Display all prices in the category page’ 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.