Js conflict
-
Hello,
I am the developer of the CartFlows plugin. I have installed your plugin Pixel Caffeine along with CartFlows (Pro) at my end and have faced the below issue.
Issue: The Checkout Offer PopUp displayed on click of *Proceed to Checkout* button or *PayPal (payment)* button (triggered on checkout_place_order event) is automatically closed and proceeded to next page.
Below are the findings :
1. I have displayed the PopUp on WooCommerce JS event *jQuery( ‘form.checkout’ ).on( ‘checkout_place_order.wcf_pre_checkout’, function(e) {…..});* which works before your frontend.js *t(“body.woocommerce-page form.checkout”).on(“checkout_place_order”, function(t) {….});* but before I could perform anything on popup it redirects to next page by your JS.
2. I tried to disable the AddPaymentInfo event from the plugin setting but still, it did not work. As you have enqueued the script on wp_footer and I have enqueued it using “wp_enqueue_scripts($footer=TRUE)” hook, our precheckout.js loads before frontend.js and hence the issue occurs.
It will be helpful if we both work on some solutions to make both the plugins compatible with each other.
Actually, there are many users who are using the Pixel Caffeine plugin as well as the CartFlows. So, if we can figure it out with the permanent solution then this issue can be solved and both the plugins will work without any conflicts.
So, if you can provide us any workaround to avoid this or any other action in the JS or any way to stop submitting the form before our pre-checkout offer is accepted that will be very helpful.
Looking forward to solving this ASAP.
The topic ‘Js conflict’ is closed to new replies.