Support

Home Forums Event Espresso Premium Adding all price points to events on Registration page

Adding all price points to events on Registration page

Posted: June 3, 2013 at 2:51 pm

Viewing 5 reply threads


Nick Putman

June 3, 2013 at 2:51 pm

Currently on the page generated by the [ESPRESSO_EVENTS] shortcode only the first price point is listed  in the events, but I would like all price points to show, in the form £40/£20/£10.

How would I go about achieving this?

Thanks,

Nick


Josh

  • Support Staff

June 4, 2013 at 9:07 am

Hi Nick,

Seth wrote up a function that will display an unordered list of all the price points. You could try it and possibly modify it to display them in your custom format. The function part of the code example can be placed into a functions file. The example code is in a gist here:

https://gist.github.com/sethshoultes/ab1e992668cf3166a686

Then where it normally displays only one price in event_list_display.php, you can substitute it with:

<?php do_action('action_hook_espresso_price_list', $event_id);?>

I hope that helps!


Nick Putman

June 4, 2013 at 9:38 am

Thanks Josh

I have this working, having edited event_list_display.php in the templates folder.  However, when I have the unmodified version of event_list_display.php in the plugin templates folder, and add a copy of event_list_display.php to uploads/espresso/templates with the modified code, the page is not using the modified version, but instead the original version.

Do you know why this would be?

Nick


Josh

  • Support Staff

June 4, 2013 at 9:53 am

This is likely because event_list.php wasn’t copied over to /wp-content/uploads/espresso/templates. event_list.php loads event_list_display.php by checking in the theme’s directory first, then its own directory. So in this case you could copy event_list_display.php over to your active theme’s directory and event-list.php will load it from there. Or you could copy over event_list.php to /wp-content/uploads/espresso/templates

There is more information in this guide: https://eventespresso.com/wiki/put-custom-templates/

Please note that if we need to make a change to a template in a future version of Event Espresso, you’ll need to copy this change into your custom template to stay current with the plugin.

We recommend using Diffmerge to help merge changes into custom templates.


Nick Putman

June 4, 2013 at 9:57 am

Thanks Josh.  Copying event_list.php to the uploads folder fixed the issue.

Thanks also to Seth for the function!

Could this function be added to a future update?

Nick


Jonathan Wilson

June 4, 2013 at 4:49 pm

Hi Nick,

I ask Seth about whether he can add this. I’m sure it will be more than just adding the snippet you did, because it will probably need to be an option in the settings, incase other customers do not want to use the feature.

Viewing 5 reply threads

The support post ‘Adding all price points to events on Registration 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.

Event Espresso