• Hi YITH Support Team,

    I’m currently using the YITH WooCommerce Compare plugin (version 3.1.0) on my WooCommerce site, and I’ve noticed that the Compare button on single product pages has stopped working.

    Upon inspecting the browser console, I’m getting the following JavaScript error:

    Uncaught TypeError: this.doAjax(...).success is not a function
    at e.value (woocompare.min.js?ver=3.1.0:9918)

    My site is running jQuery version 3.3.1, and I can see that the .success() method is being used in the plugin’s woocompare.min.js file, which is deprecated and removed in jQuery 3.x. Replacing .success() with .done() does not take effect because the plugin still loads the minified version via the default ?ver=3.1.0 URL.

    Can you please confirm if this is a known issue and if there’s a patch or updated version planned that addresses jQuery 3.x compatibility?

    Let me know how best to proceed.

    Thanks,

    Manoj Sharma

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello Manoj,
    thanks for contacting us!

    The plugin has recently been updated with new designs and coding, so we haven’t received any such reports. However, compatibility with this version of jQuery is currently unavailable.

    In any case, please try to verify the change by adding the following code to your wp-config.php file:

    define( 'SCRIPT_DEBUG', true );

    Let us know.

    Best regards.

    Hello my compare button also stoped working… and i can see 2 buttons, the first button is working but the compare card is ugly. In my console i take this error Uncaught ReferenceError: yith_woocompare is not defined at HTMLButtonElement

    Hello @tenisole ,
    thanks for contacting us!

    I suggest you open a new topic stating the problem and providing us with the site URL so we can verify it. Thank you.

    Best regards.

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

The topic ‘Compare Button Not Working’ is closed to new replies.