Support

Home Forums Event Espresso Premium Leave Page / Stay on Page

Leave Page / Stay on Page

Posted: January 23, 2015 at 2:34 pm


epconnects

January 23, 2015 at 2:34 pm

I’m using Event Espresso 3.1.3636.P
with Authorize.net AIM with GA Gateway

When visitors input their CC info and click COMPLETE PURCHASE, a popup shows with the text: “This page is asking you to confirm that you want to leave – data you have entered may not be saved” and options of “Leave Page” “Stay on Page”.
That will be confusing for the visitors – how can we get rid of that?

Thank You


Lorenzo Orlando Caum

  • Support Staff

January 23, 2015 at 3:14 pm

Hi, could you check to see if there a multiple [ESPRESSO_EVENTS] short codes in use on the site?

Event Espresso needs a single [ESPRESSO_EVENTS] to be on the site.

You can run a search in WordPress pages for the shortcode above. If there are duplicates, please remove them from extra pages so there is one instance of the shortcode remaining on your site.

Thanks.


Lorenzo


epconnects

January 24, 2015 at 9:38 am

The shortcode is being used only once in one page.


Lorenzo Orlando Caum

  • Support Staff

January 24, 2015 at 12:00 pm

Hi, the site is using some customized templates for Event Espresso 3. If those were originally customized on an old version of Event Espresso 3, then they may be causing the issue that you are seeing.

Could you login to your site with an SFTP client or FTP client and browse to this location:

/wp-content/uploads/espresso/templates

You’ll see a handful of files there. Unfortunately, we do not have an easy way of knowing which ones are causing an issue. However, I would try temporarily renaming these files:

payment_overview.php –> payment_overview.php.old
payment_page.php –> payment_page.old

Then try another registration and check to see if the message appears. If it doesn’t, then try restoring one of the files above and retest.

If it breaks, then there are issues in that file that will need to be fixed by a developer.

If it still works, then the issue is with the remaining file.

Let us know what you find.


Lorenzo


epconnects

January 26, 2015 at 8:33 am

Lorenzo,
I renamed those 2 files and ran a test.
No changes – message still shows.


epconnects

January 26, 2015 at 8:51 am

Actually, the message changed a little – it reads:
“Warning!!! Using the back button will overwrite your existing registration.
Are you sure you want to leave this page?”


Lorenzo Orlando Caum

  • Support Staff

January 26, 2015 at 10:09 am

Hi,

Could you retest with the templates folder renamed:

/wp-content/uploads/espresso/templates

templates –> templates1

That will set Event Espresso to use its default templates.

Another place where there may be some custom coding is in the child theme’s functions.php file. If there is anything for Event Espresso, then try commenting it out:

http://php.net/manual/en/language.basic-syntax.comments.php

Be sure to reverse your changes after testing and let us know what you find.


Lorenzo


epconnects

January 26, 2015 at 11:33 am

I tried renaming the ‘templates’ directory – It creates more problems ( styles are gone and the button to ‘Add to Cart’ disappear as well.

About the ‘custom coding’ – I’m not sure what to look for. I ran a search on all files for the word ‘warning’ but nothing comes up.

Does it help if you have FTP access? is there a safe way to send it to you?

Thanks


Lorenzo Orlando Caum

  • Support Staff

January 26, 2015 at 1:03 pm

Hi, this isn’t something that we can take on through our support forums.

We didn’t build the site for you so we aren’t familiar with the customizations and there are a handful of customized files.

My earlier suggestion would temporarily break the styling but it would also help pinpoint if the customizations are creating this issue.

Could you perform this in three steps?

1) Open a tab and go to an existing registration page and begin the registration but then pause

2) Then rename the templates folder with your SFTP or FTP client

3) Then continue the registration in your browser tab and check to see if the warning appears again.

If it doesn’t, then the cause is somewhere in the customized templates and we can make additional suggestions.

*Be sure to restore the name of the templates folder after testing and the styling / layout will be immediately restored.


Lorenzo


epconnects

January 26, 2015 at 1:11 pm

Based on this thread:
https://eventespresso.com/topic/confirm-navigation/
I updated the file:
‘uploads/espresso/gateways/aimga/aim_vars.php’
by adding the class “allow-leave-page” to the submit button –
It got rid of the message. But is that the correct way to do it? will it mess anything else?


Lorenzo Orlando Caum

  • Support Staff

January 26, 2015 at 1:22 pm

Hi, my next questions were going to be regarding the payment gateway but I wanted to rule out any issues with the custom templates.

We do not use that folder name for Authorizenet AIM in the current release of Event Espresso 3.

Did your web developer leave any notes regarding any customizations to that payment gateway?

We’d like you to move to the current software but we don’t want to unknowingly create new issues or break something. Hope that makes sense.


Lorenzo


epconnects

January 27, 2015 at 8:46 am

Yes, we definitely want to have the software current & working as it should.
There are NO notes from the previous developer about customization to the gateway. I tried deleting the ‘gateway’ folder. It breaks the check out.

Since you know this plugin a lot better, I think it’d be so much faster (for you and I) if you could take a look at the files. I bet that in a few seconds you’ll be able to eliminate whatever shouldn’t be there and get this fixed. I’m just slowing you down here.

Can I ‘please’ send you the FTP access for you to take a look?
I’d really appreciated it. – Thanks


Lorenzo Orlando Caum

  • Support Staff

January 27, 2015 at 2:08 pm

Hi,

Please share that temporary SFTP login through the secure link below:

https://eventespresso.com/send-login-details/

The submit button for the form appears at the end of the form.

I’ll run a few minutes of testing with the latest Authorizenet AIM gateway to see if that helps.

Thanks.


Lorenzo

The support post ‘Leave Page / Stay on Page’ 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