Support

Home Forums Event Espresso Premium Re-direct to payment website doesn't work

Re-direct to payment website doesn't work

Posted: July 15, 2013 at 2:06 pm

Viewing 4 reply threads


bcoryer

July 15, 2013 at 2:06 pm

I am using wp 3.5.2 and EventEspresso 3.1.33.3.P

Link to the registration page: http://reikieducation.org/events/?ee=122

After confirming the registration, the page didn’t re-direct to the Paypal payment page automatically. If you click and redirect it manually, it show’s a pop up “Are you sure you want to leave page? Warning! Using the back button will overwrite your existing registration.”

Thank you for your help.

William


Josh

  • Support Staff

July 15, 2013 at 2:15 pm

Hi William,

I’m sorry for the trouble. There’s a fix for this in the next version of Event Espresso, and you can manually apply it by adding one line of code to event-espresso/gateways/PaymentGateway.php (this can be added just before line 137:

echo "<input type=\"hidden\" id=\"bypass_payment_page\" name=\"bypass_payment_page\" value=\"true\"/>\n";

Then, in event-espresso/scripts/espresso_payment_page.js you can add this line just after the opening jQuery(document).ready(function($) {

var bypass_payment_page = $('#bypass_payment_page').val();

then near the bottom of the file, you can change the line that currently says “if ( preventLeavePage ) { to:

if ( preventLeavePage && bypass_payment_page != 'true' ) {

Please note: The above fix works for the standard PayPal gateway. We are working on fixing related issues with the other gateways where need be.


bcoryer

July 16, 2013 at 11:04 am

Hi Josh,

It didn’t solve the problem. Problem remains the same.

William


bcoryer

July 16, 2013 at 1:19 pm

The bug finally cleared up. It is working properly now. Thanks.


Josh

  • Support Staff

July 16, 2013 at 2:04 pm

Hi William,

Are there any Google Analytics plugins active? Is so, is outbound link tracking enabled in the Google Analytics plugins?

Also, did you try clearing the browsers cache after making the edit? Since it’s a JavaScript file being edited your changes may not get loaded up unless the cache is cleared.

Viewing 4 reply threads

The support post ‘Re-direct to payment website doesn't work’ 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