Support

Home Forums Event Espresso Premium Display events as 'free event' instead of 0.00 in event meta

Display events as 'free event' instead of 0.00 in event meta

Posted: July 31, 2012 at 4:59 pm


Runemester

July 31, 2012 at 4:59 pm

Hi,

I would like to change the default pricing display for free events – from the digits ‘0.00’ to a short text description. In other words – if the event has a price of 0.00 assigned it outputs the text ‘free event’ instead of the digits. Is this possible without manipulating with core files?

Thanks
Rune


Josh

  • Support Staff

August 1, 2012 at 5:48 pm

Try modifying event_list_display.php to this:

<div class="event-meta">
             <p id="p_event_price-<?php echo $event_id ?>" class="event_price"><span class="section-title"><?php  echo __('Price: ', 'event_espresso'); ?></span> <?php echo event_espresso_get_price($event_id);?></p>


Runemester

August 2, 2012 at 10:49 am

Thanks a lot! Works like a charm – keep it up 😉

The support post ‘Display events as 'free event' instead of 0.00 in event meta’ 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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3 Documentation for Event Espresso 4

Status: closed

Updated by  Runemester 8 years, 3 months ago ago

Topic Tags

Notifications

This topic is: resolved
Do NOT follow this link or you will be banned from the site!