Support

Home Forums Event Espresso Premium Changing System Notifications

Changing System Notifications

Posted: June 29, 2015 at 7:23 pm


Wendy

June 29, 2015 at 7:23 pm

We have our event set to “Not Approved” default, so some of the system notifications are not accurate. How can these be changed? Specifically these 3 areas:

1. At the bottom of the registration form, the button says “Proceed to payment options.” I’d like to change to “Proceed to next page.”

2. Once you click that button, this notice shows up (I’d like to delete the last sentence.):
Important Notice:
The following events do not require payment at this time and will not be billed during this transaction. Billing will only occur after the attendee has been approved by the event organizer. You will be notified when your registration has been processed. If this is a free event, then no billing will occur.

3. Once you click that button, this notice shows up (I’d like to change this completely and remove the button to the order confirmation):

Congratulations
Your registration has been successfully processed.
Check your email for your registration confirmation or click the button below to view / download / print a full description of your purchases and registration information.


Lorenzo Orlando Caum

  • Support Staff

June 30, 2015 at 9:24 am

Hi Wendy, I’m going to split my reply into multiple replies since I’ll be sharing some code snippets.

For the button text, please add this to your child theme’s functions.php file or create a site specific plugin (https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/):

function espresso_filter_spco_submit_button_text_example( $submit_button_text, EE_Checkout $checkout ) {
    if ( ! $checkout instanceof EE_Checkout || ! $checkout->current_step instanceof EE_SPCO_Reg_Step || ! $checkout->next_step instanceof EE_SPCO_Reg_Step ) {
        return $submit_button_text;
    }
 
    // $checkout->revisit - whether this is the first time thru SPCO or not : false = first visit, true = return visit (ie repay or edit)
    // details for the CURRENT SPCO Reg Step
    // $checkout->current_step->slug();  ex: 'attendee_information', 'payment_options', 'finalize_registration'
    // $checkout->current_step->name();
    // details for the NEXT SPCO Reg Step that follows the CURRENT SPCO Reg Step
    // $checkout->next_step->slug();
    // $checkout->next_step->name();
 
    if ( $checkout->next_step->slug() == 'finalize_registration' ) {
        $submit_button_text = __( 'Complete Registration', 'event_espresso' );
    } else if ( $checkout->current_step->slug() == 'attendee_information' && $checkout->revisit ) {
        $submit_button_text = sprintf( __( 'Welcome back. Proceed to %1$s', 'event_espresso' ), $checkout->next_step->name() );
    } else if ( $checkout->current_step->slug() == 'attendee_information' ) {
        $submit_button_text = sprintf( __( 'Proceed to Next Page', 'event_espresso' ), $checkout->next_step->name() );
    } else {
        $submit_button_text = sprintf( __( 'Finished with %1$s? Go to %2$s', 'event_espresso' ), $checkout->current_step->name(), $checkout->next_step->name() );
    }
    return $submit_button_text;
}
add_filter( 'FHEE__EE_SPCO_Reg_Step__set_submit_button_text___submit_button_text', 'espresso_filter_spco_submit_button_text_example', 10, 2 );


Lorenzo


Lorenzo Orlando Caum

  • Support Staff

June 30, 2015 at 9:33 am

Hello again,

On your second question, there is a filter available for changing the messaging:

https://gist.github.com/lorenzocaum/28ccc3b92d38e1dbc046

On your last question, that can be hidden with CSS:

.ee-attention {display:none;}

The line of CSS above can be added to your child theme’s stylesheet or through a plugin like My Custom CSS or Reaktiv CSS Builder.

If you are actually trying to change the messaging that is shown there, then there is also a filter for that:

https://gist.github.com/lorenzocaum/b0fef298c2ecb2965353#file-new_gist_file-php

Thanks


Lorenzo

The support post ‘Changing System Notifications’ 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