Support

Home Forums Event Espresso Premium Changing 'Goes On Sale' Wording

Changing 'Goes On Sale' Wording

Posted: August 3, 2015 at 3:18 pm

Viewing 3 reply threads


kerry

August 3, 2015 at 3:18 pm

Hi there,

The client whom I am using this plug in for is concerned about the wording for the ticketing. She’d like some component that gives a sense of deadline to the registration date, rather than “goes on sale” like a closes on date, or register by. For her workshops she has an early bird, general and late registration ticket so wants it to be have a deadline driven motivator.

Anyone have any suggestion on how to do this? I love the plug in and want it to work for us. I have the dates now shows the start date for each type of ticket. Maybe just changing the ‘goes on sale’ wording would help. There are so many great articles that are super close to answering this, although I don’t ever seem to be able to find the php or css file that I need to find the coding.

Thanks in advance!
Kerry


Lorenzo Orlando Caum

  • Support Staff

August 3, 2015 at 3:30 pm

Hi Kerry, that is possible and we can provide an example. Are there any other areas that you would like to also change?


Lorenzo


kerry

August 3, 2015 at 3:33 pm

Yes, I think that the wording just under the tickets ‘*Please note that a maximum number of 10 tickets can be purchased for this event per order’ they would like to delete.

And perhaps ‘Comments are closed.’

This is the first event I am working on but would like to have this universal:
http://emeraldquestcoaching.com/events/rejuvenate-and-refocus-workshop-chicago-il/


Dean

August 4, 2015 at 4:50 am

Hi,

You can use the function below (also see here : https://eventespresso.com/wiki/how-to-change-wording-with-poedit/ ) which can be used for both EE and the theme (the ‘Comments are closed.’ is from the theme).

function mycustom_filter_gettext( $translated, $original, $domain ) {
 
    // This is an array of original strings
    // and what they should be replaced with
    $strings = array(
        'Goes on sale' => 'Buy from',
        'Comments are closed.' => 'Discussion is not possible',
        // 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', 'mycustom_filter_gettext', 10, 3 );

You will need to make sure that the phrasing is correct so that it works.

Viewing 3 reply threads

The support post ‘Changing 'Goes On Sale' Wording’ 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