• Resolved petschko

    (@petschko)


    Hey,

    I want to use this plugin, it works super great and increases the load time so much. I’m also a big fan that this adds something to the user privacy, by disabling certain plugins on pages where they don’t belong (such as 3rd party payment-plugin JS files etc)

    I configured it so it load only the Plugin it needs on each page. It works top notch on all pages except on 1 page… We have many payment plugins, which adds more payment options to the WooCommerce-Checkout. I noticed it a bit late but this plugin seems to removes all payment plugins, even if there are active on the Checkout-Page.

    I see the plugins are active (debug messages), also the payment options show up, but WooCommerce does a AJAX-Request to refresh the checkout (Shipment and payment systems), after the AJAX-Requests I see only the default payment system of WooCommerce, even if the other payment systems show up before.

    I even created a test-page and just installed your plugin WITHOUT disable ANY Plugin on ANY page. Still the same issue, the WooCommerce AJAX-Request removes the other payment systems, I tested a lot but i could not found out how to solve it… Maybe someone here has a clue?

    It really has something to do with the WooCommerce AJAX-Request, but why? Even if all Plugins are globaly allowed it disables them

    Maybe there is an option to disable that Plugin completely on the checkout page?

    CC: @nicolamustone @conschneider
    Unsure if it belongs here or to the WooCommerce Forums, that’s why I add some of them as CC

    Thank you so much for reading =)

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

    (@petschko)

    Ops I found the issue, but only thanks to this post: https://www.ads-software.com/support/topic/incompatible-with-woocommerce-3-2-1-and-paypal-plus-for-woocommerce/#post-9627970

    It was the ?wc-ajax=* which caused the issue, as I saw even on my test site the homepage has the plugins disabled on the homepage, but ?wc-ajax= points to the homepage…

    Now I got it to work, at least I found a handle to solve that issue^^

    qwik3r

    (@qwik3r)

    ^ You didn’t really post an understandable solution… how did you get around the wc-ajax= issue. Is that excluded somewhere?

    Thread Starter petschko

    (@petschko)

    You need to create a Filter for the homepage, where you allow the WooCommerce & Checkout related Plugins: (This Filter is just for the checkout)

    https://example.com/?wc-ajax=*
    https://example.com/?wc-ajax=*
    https://example.com/?wc-ajax=update_order_review
    https://example.com/?wc-ajax=update_order_review
    

    Then you need to create a Filter for the homepage, which affects the actual homepage, where you just allow the Plugins you need for the Homepage: (This Filter is for the real Homepage)

    https://example.com/
    https://example.com/
    https://example.com/?*
    https://example.com/?*
    

    Also make sure to have the option “Ignore URL Arguments” in the Plugin-Organizer-Settings OFF, else it doesn’t work
    Make sure to have no Plugins disable on the Homepage via Pages -> Homepage, this is only done via Plugin-Filters for the Homepage

    Other pages can be set normal and keep in mind since you turn “Ignore URL Arguments” OFF, it may require you to change more pages which have URL-Parameters, since they are now handles as other page, use the debug mode of Plugin-Organizer

    • This reply was modified 5 years ago by petschko.
    • This reply was modified 5 years ago by petschko. Reason: Formating issues fixed
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WooCommerce checkout AJAX’ is closed to new replies.