Support

Home Forums Event Espresso Premium Getting list of prices to display on a template and moving template files.

Getting list of prices to display on a template and moving template files.

Posted: July 31, 2013 at 2:45 pm

Viewing 2 reply threads


Carol Stambaugh

July 31, 2013 at 2:45 pm

This issue initiated in this thread. https://eventespresso.com/topic/page-using-shortcode-of-event-categories-only-showing-top-price/

I think I have missed a step based on Seth’s last comment. Where are the template files originally housed? I now see that they need to be moved to the uploads folder. Do the files need to be moved or copied?

Thank you.
Carol


Josh

  • Support Staff

July 31, 2013 at 3:25 pm

Hi Carol,

They could be moved or copied to /wp-content/uploads/espresso/templates. Copying is probably safer though. This way if they don’t get copied correctly nothing has been deleted from the plugin.

I’m looking over the thread though and I think this might be there may be mis-types when it comes to file names. I’ll try to outline the exact steps to make this customization happen that uses the fewest steps possible:

1) Copy event_list_display.php from the Event Espresso plugin’s /templates folder to your active theme’s folder. Which should be /themes/magazine.

2) Open the copy and edit the part of line 70 (or thereabouts) that reads:

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

change it to:

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

3) Copy the function from the gist into your theme’s functions.php

I took a look at the screenshot of the code you posted and it looks like the the code in step #2 was added instead of being replaced, so that might help to make sure the old pricing code is removed too. Also, it looks like the single quotes were copied and pasted in as apostrophes, which might be breaking things.

So to clarify the last point, the single quotes be straight up and down, not slanted like they are in the screenshot here:

http://screencast.com/t/3EIkxRLw

If you’d like to have someone from support to FTP in and make these changes and verify it’s all working this is something we can do within the 30 minutes that one support token can be used for.


Carol Stambaugh

August 2, 2013 at 5:58 pm

And that did it. Thank you so much!!!! Resolved.

Viewing 2 reply threads

The support post ‘Getting list of prices to display on a template and moving template files.’ 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