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?
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:
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.
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.
Support forum for Event Espresso 3 and Event Espresso 4.