• Resolved dirk77

    (@dirk77)


    Hi,

    i’ve some serious trouble to get paypal plus working.

    using theme: virtue
    plugins which may interfer: autoptimize, super-cache

    even with the mentioned plugins turned off the redirect to the paypal page after buy doesnt work. i am directed to checkout/order-pay/*orderID*.

    I want to work with Scenario 2 as everything else on the site is working well…

    Szenario 1:
    without compressed inline js from autoptimize
    In the Console thrown Error:
    Uncaught ReferenceError: “jQuery is not defined” on the following call:
    jQuery( window ).on(‘load’, function() {
    paypal_plus_redirect();
    } );
    if i type in console paypal_plus_redirect() everything works fine.

    Scenario2:
    with compressed inline js from autoptimize
    In the Console thrown Error:
    Uncaught TypeError: jQuery.blockUI is not a function
    at paypal_plus_redirect (autoptimize_4b83c045ea527b17b6dcb973c462b953.js:30)

    if i type in console paypal_plus_redirect() still got the jQuery.blockUI
    i have read i need a newer jQuery.blockUi JS File ???

    I think it s a common jquery errot on wordpress but i do not see it.

    greets

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter dirk77

    (@dirk77)

    Hi guys,

    here is the solution:

    i am using following plugins which i thought could be the problem:

    Autoptimize
    Super Cache
    Async Javascript

    In the End it was “Async Javascript” changing Settings and it works perfectly:
    jQuery Method: exclude
    Async JavaScript For Plugins
    Enable Autoptimize Support: YES
    jQuery Method: Defer

    May this helps anyone in the future.
    Cheers Dirk

    Plugin Support Andreas W.

    (@aweissinpsyde)

    Hello @dirk77,

    thank you so much for your solution. It seems your plugins minified the javascript files of our plugin what can cause some errors.

    Thread Starter dirk77

    (@dirk77)

    Thank You Andreas. Great Support!
    You didn’t do anything wrong. It was my fault using a plugin which regular settings interfering with your plugin and i guess a lot of other plugins as well.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘jquery issue – no redirect to paypal’ is closed to new replies.