Login

Lost Password

Skip to content
  • Themedutch – webdesign agency Themedutch – webdesign agency
  • HOME
  • WP THEMES
  • PLUGINS
    • um-switcher
  • HELPDESK
    • Support forums
    • My tickets
    • Faq
    • Manuals
  • LOGIN
  • REGISTER
  • HOME
  • WP THEMES
  • PLUGINS
    • um-switcher
  • HELPDESK
    • Support forums
    • My tickets
    • Faq
    • Manuals
  • LOGIN
  • REGISTER
    Page Header Image

    JS conflicts with other plugins

    Mib1092
    0 Comment

    JS conflicts with other plugins

    Home › Forums › UM Switcher › JS conflicts with other plugins

    • This topic has 1 reply, 2 voices, and was last updated 4 years, 5 months ago by Sleet1337sleet1337.
    Viewing 1 reply thread
    • Author
      Posts
      • at #83014
        Mib1092mib1092
        Participant

        Hello,
        I noticed conflicts in the admin panel on the product editing page after installing UM Switcher. The subscription dropdowns in WooCommerce did not work properly. Having examined the problem a bit, I found the cause of conflict situations in your plugin.

        1. An outdated version of jQuery. If you assume here that jQuery may not be loaded on the page, then you can always check if that library is loaded ( !wp_script_is( 'jquery', 'enqueued' ) ) and then add it via the secure wp_enqueue_script function.

        2. The “$” symbol at the beginning uses not only the jQuery library. Therefore, in order not to create conflicts in the future, in WordPress uses such compatibility mode to start the script at least - jQuery(function($) {...}); or (function($) {...})(jQuery);

        In one of the screenshots I showed in which file I found the problem areas, but if I’m not mistaken, these issues are in other files as well.

        After I fixed these obvious things - my page began to function correctly, without errors in the browser console. But since I made adjustments to the plugin files, they will be overwritten as soon as you release the updated version. So I would appreciate you to correct these issues by your side also.
        Thanks!

        Attachments:
        1. ae9cf-clip-266kb.png

        2. de760-clip-275kb.png

      • at #83136
        Sleet1337sleet1337
        Participant

        BUMP

        Same issue still exists…


        @mib1092
        Can you share the changes that you made?

        It seems the support here is nonexistent and am going to have to request a refund through envato.

    • Author
      Posts
    Viewing 1 reply thread
    • You must be logged in to reply to this topic.
    Log In
    © 2020 - THEMEDUTCH BV.