• Resolved Kokomo

    (@kokomoweb)


    Hello,

    I am the developer of the plugin “Product Customer list for WooCommerce” (https://ww.wp.xz.cn/plugins/wc-product-customer-list/). One of my users has reported that your plugin has a conflict with mine. After digging a bit, it seems that when your plugin is activated, it loads the script “datatables” (minified inside your asset admin.js) on every admin page, which prevents my plugin to work since it loads the same script (enqueued) on Woocommerce admin pages. Would it be possible to fix your plugin so it only loads the script when needed?

    Thank-you,

    Thierry

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Brecht

    (@brechtvds)

    Hi Thierry,

    I just tested the “Product Customer list for WooCommerce” plugin together with WP Recipe Maker and do not seem to be experiencing any issues at all. Both your and our datatable works fine and I don’t see any JS errors either.

    Are you getting any JS errors then? What version of our plugin are you testing?

    Kind regards,
    Brecht

    Thread Starter Kokomo

    (@kokomoweb)

    HI @brechtvds,

    thanks for the quick answer. In order to see the conflict, you’ll need to have wooocommerce installed, and then try to edit a product that has at least one completed order for it. Once that is done, edit the product and scroll to the “customers who bought this product” metabox. When your plugin is activated, the datatables buttons for “pdf”, “csv”, “print”, etc… dissapear, but the table works properly, which makes me think that maybe your javascript is affecting only that part of my plugin. Does that ring a bell?

    Thread Starter Kokomo

    (@kokomoweb)

    Forgot to add that somehow there is no javascript errors in the console.

    Plugin Author Brecht

    (@brechtvds)

    Hi again,

    My apologies, lost track of this issue for a while.

    Could you try updating to the latest 2.5.3 version and see if that resolves the conflict?

    Kind regards,
    Brecht

    Thread Starter Kokomo

    (@kokomoweb)

    It seems to work now, thank-you. Out of curiosity, what was needed to fix it?

    Plugin Author Brecht

    (@brechtvds)

    I took the Datatables library out of our minified admin assets and basically only load it on our manage page where we need it.

    Brecht

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Javascript conflict with other plugins (datatables)’ is closed to new replies.