• Resolved jetxpert

    (@jetxpert)


    Good Day!

    The latest revision of your plugin conflicts with WooCommerce.

    That is, when WooCommerce is activated, your plugin no longer works (i.e., our banner does not display). When we deactivate WooCommerce, it works again.

    Investigation reveals the offending file is:

    wp-content/plugins/woocommerce/assets/js/js-cookie/js.cookie.min.js

    So, in short, it appears the above file is “render-blocking” your plugin.

    Kindly update your plugin code to fix the above issue.

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jetxpert

    (@jetxpert)

    Clarification:

    Your plugin works with WooCommerce activated.

    Your plugin does not work when we dequeue (deactivate) the above file – added by WooCommerce.

    So, for testing purposes, install and activate WooCommerce, then dequeue the above file using the snippet provided below (or any other equivalent snippet)

    https://crunchify.com/how-to-stop-loading-woocommerce-js-javascript-and-css-files-on-all-wordpress-postspages/

    Please let us know if you have been able to replicate the same issue.

    Thank you!

    Plugin Support Swathi S

    (@swathiswpfront)

    Hello,

    Both plugins have dependency on js.cookie and should be using the same slug to enqueue it. So when you dequeue, you are dequeuing it from both places. This can be easily fixed by renaming the slug, but then same file will be loaded twice in the browser. So keeping it as it is.

    Thanks,
    Swathi S

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Conflict with WooCommerce’ is closed to new replies.