Support

Home Forums Event Espresso Premium Prevent "Warning!!! Using the back button will overwrite .." Windows to show up

Prevent "Warning!!! Using the back button will overwrite .." Windows to show up

Posted: March 19, 2014 at 4:11 am

Viewing 2 reply threads


Monika Lauber

March 19, 2014 at 4:11 am

Hi,

I want the payments made seperatly to be compatible with my accounting system. I edited gateway_display.php to prevent showing the payment option box when somebody went thru the registration process. This went well. When you try to leave the confirmation page, a popup is coming up saying
“Warning!!! Using the back button will overwrite your existing registration.
Are you sure you want to leave this page?”
Options Stay on this page or Leave this page.

How can I prevent this warning windows to show up?

Wordpress Version: 3.8.1. de_DE
Event Espresso Plugin Version: 3.1.36.4.P
Event Espresso – Custom Template Display Version: 1.0
Event Espresso API Plugin Version: 2.1.1.P

It is a new installation
Link to registration page: http://guerilla-fototour.de/event-registration/


Josh

  • Support Staff

March 19, 2014 at 6:14 am

Hi Monika,

Depending on how you’ve already modified the template file, it may work to deregister the JavaScript that loads on the payment page. Here’s something you can add in a custom snippet plugin that will make that happen:

add_action( 'wp_print_scripts', 'my_no_ee_paybutton_hide', 100 );

function my_no_ee_paybutton_hide() {
	wp_deregister_script( 'espresso_payment_page' );
}

Please note that if someone does use the back button to go and register again it will overwrite their original registration, so you may need to place another link on your modified payment page to direct them to another page that will clear their session before they start a new registration. Another page can be created that has the [ESPRESSO_CANCELLED] shortcode for this purpose.


Monika Lauber

March 19, 2014 at 12:05 pm

Josh, thank you for helping me writing my first wordpress plugin 🙂
It works as expected, the popup is gone and I´m happy.
Cheers from Hamburg/Germany
Moni

Viewing 2 reply threads

The support post ‘Prevent "Warning!!! Using the back button will overwrite .." Windows to show up’ 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