Support

Home Forums Event Espresso Premium Free event – attendee numbers

Free event – attendee numbers

Posted: June 3, 2013 at 10:34 am

Viewing 3 reply threads


Ben

June 3, 2013 at 10:34 am

Hi,

I am trying to create a free event (reservation/booking) for attendee numbers. Can you tell me how this is done?

Is it how Seth describes here? – https://eventespresso.com/topic/managing-free-events/

Thanks

Ben


Garth

  • Support Staff

June 3, 2013 at 11:50 am

HI bbradley,

How are you today?

The registration process is nearly the same for paid and free events, EXCEPT, for the fact that events that are $0 do not require payment.

You don’t have to change your template and drop-down files if you dont’ want to.


Ben

June 3, 2013 at 11:24 pm

Thanks Garth,

All sorted now, I changed some obvious basic settings, and all working now. (Tut).

how can I remove the ‘free event’ that appears? Event list display?

thanks

Ben


Josh

  • Support Staff

June 4, 2013 at 8:49 am

The “Free Event” text is located in a core function. What you could do is use the gettext filter to change “Free Event” to ” “, which will make it so that the Free Event text doesn’t display on your site. Here is some example code you can add to your custom functions file that will make this happen:

function my_ee_filter_gettext( $translated, $original, $domain ) {
 
    // This is an array of original strings
    // and what they should be replaced with
    $strings = array(
        'Free Event' => ' ',        
        // Add some more strings here
    );
 
    // See if the current string is in the $strings array
    // If so, replace its translation
    if ( isset( $strings[$original] ) ) {
        // This accomplishes the same thing as __()
        // but without running it through the filter again
        $translations = &get_translations_for_domain( $domain );
        $translated = $translations->translate( $strings[$original] );
    }
 
    return $translated;
}
 
add_filter( 'gettext', 'my_ee_filter_gettext', 10, 3 );
Viewing 3 reply threads

The support post ‘Free event – attendee numbers’ 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