Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
How can I turn off "Payment Overview" and "Please choose a payment option" ... | Event Espresso - Staging Server

Support

Home Forums Event Espresso Premium How can I turn off "Payment Overview" and "Please choose a payment option" …

How can I turn off "Payment Overview" and "Please choose a payment option" …

Posted: April 4, 2014 at 4:43 pm

Viewing 1 reply thread


Carl Mitchell

April 4, 2014 at 4:43 pm

How can I turn off “Payment Overview” and “Please choose a payment option” on submission of the registration form? As the first class is usually free, I would like to present a simple “Thank you” message instead of “Your registration is not complete until payment is received.” message. I wish to avoid payments through the site right now. Thank you!!!

Registration page: http://ckmsantafe.com/event-registration/?ee=245
Event Espresso version 3.1.36.5.P
WordPress version WP 3.8.1
Site URL http://ckmsantafe.com


Lorenzo Orlando Caum

  • Support Staff

April 4, 2014 at 6:05 pm

Hi,

You can hide the payment area by adding the following CSS to a plugin such as My Custom CSS:

#payment-options-dv, #external-link-msg-pg {display:none}

This filter should replace that message and can go into your theme’s functions.php file or a custom snippet plugin (http://ottopress.com/2011/creating-a-site-specific-snippets-plugin/):

function mycustom_filter_gettext_thankyou( $translated, $original, $domain ) {
 
    // This is an array of original strings
    // and what they should be replaced with
    $strings = array(
        'Your registration is not complete until payment is received.' => 'Thank you',
        // 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_thankyou', 10, 3 );


Lorenzo

Viewing 1 reply thread

The support post ‘How can I turn off "Payment Overview" and "Please choose a payment option" …’ 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 - Staging Server