Support

Home Forums Event Espresso Premium Leave this Page warning – no payment gateways turned on

Leave this Page warning – no payment gateways turned on

Posted: June 20, 2014 at 12:18 pm


navycoat

June 20, 2014 at 12:18 pm

Hi,

I have read all the threads regarding this subject and I don’t see that they apply to my situation so I don’t know why I keep getting this message. All of my payment options are offline so I do not have any payment gateways turned on. I also have bypassed the confirmation page. The customer enters all their information and are taken directly to the Payment Confirmation page. The automated email they receive outlines other payment methods but it’s not handled through the website.

Now, if they try to leave the page (which eventually they have to), they get that very scary message.

Pop up Message: Warning!!! Using the back button will overwrite your existing registration. Are you sure you want to leave this page?

How can I stop this message from popping up for my webpage please? I could see getting a lot of phone calls regarding this and at this time, there is no way to bypass this.

Also – I have already sent in all my credentials for another tech support situation. If you still have access to those credentials, please feel free to check out the site and test it out.

Thanks so much!
Caroleen

Wordpress 3.9.1
Event Espresso 3.1.36.5.P
New installation
Site is online but password protected and in development


Sidney Harrell

June 20, 2014 at 4:30 pm

All of the off-site gateways present the user with a “Finalize Your Registration” button when they click on the gateway’s icon. If the user does not click on that Finalize button and go to the Thank-You page, then their session is not closed out and if they go back to register another person, then the new registration will overwrite the registration that was not finalized.
However, you could copy the file payment_page.php from plugins/event-espresso/templates to uploads/espresso/templates, then add the following to the end of the file:

<form>
	<input  type="hidden" name="allow_leave_page" id="allow_leave_page" value="true"/>
</form>
<?php event_espresso_clear_session_of_attendee($session_id); ?>

This should automatically finalize the user’s session when they hit the payment page, instead of waiting for them to hit the finalize button, and disable the pop-up warning.


navycoat

June 21, 2014 at 12:55 pm

THANK YOU! I followed your instructions and it worked perfectly!

I also appreciate the explanation of why it was happening. Perhaps I have a strange situation since I don’t have payment gateways. Thank you for providing a detailed solution that I could follow!

The support post ‘Leave this Page warning – no payment gateways turned on’ 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