• Resolved seijuro

    (@seijuro)


    When i enable the Wishlist plugin & try to remove coupon from mini cart. The plugin gives error on the console & removing coupon get stuck on loading screen.

    Uncaught TypeError: n.closest is not a function
        at HTMLBodyElement.<anonymous> (jquery.yith-wcwl.min.js?ver=3.19.0:1:15526)
        at HTMLDocument.dispatch (jquery.min.js?ver=3.6.1:2:43064)
        at y.handle (jquery.min.js?ver=3.6.1:2:41048)
        at Object.trigger (jquery.min.js?ver=3.6.1:2:71659)
        at HTMLBodyElement.<anonymous> (jquery.min.js?ver=3.6.1:2:72254)
        at Function.each (jquery.min.js?ver=3.6.1:2:3003)
        at s.fn.init.each (jquery.min.js?ver=3.6.1:2:1481)
        at s.fn.init.trigger (jquery.min.js?ver=3.6.1:2:72230)
        at Object.success (ext-mini-cart.min.js:1:7240)
        at c (jquery.min.js?ver=3.6.1:2:28327)

    The error is happening on this line

    void 0 !== n && n.closest(".wishlist_table").length && ("undefined" != typeof wc_add_to_cart_params && (wc_add_to_cart_params.cart_redirect_after_add = s),

    Also when i try to update products quantity in mini cart like it gives me this error

    Uncaught TypeError: n.closest is not a function
        at HTMLBodyElement.<anonymous> (jquery.yith-wcwl.min.js?ver=3.19.0:1:15526)
        at HTMLDocument.dispatch (jquery.min.js?ver=3.6.1:2:43064)
        at y.handle (jquery.min.js?ver=3.6.1:2:41048)
        at Object.trigger (jquery.min.js?ver=3.6.1:2:71659)
        at HTMLBodyElement.<anonymous> (jquery.min.js?ver=3.6.1:2:72254)
        at Function.each (jquery.min.js?ver=3.6.1:2:3003)
        at s.fn.init.each (jquery.min.js?ver=3.6.1:2:1481)
        at s.fn.init.trigger (jquery.min.js?ver=3.6.1:2:72230)
        at Object.success (main.min.js:2:19686)
        at c (jquery.min.js?ver=3.6.1:2:28327)

    When the plugin is disabled everything works fine.

    Active Theme:
    Elessi Theme Version: 5.1.4

    Active Plugins:
    Nasa Core Version 5.1.4
    WooCommerce Version 7.5.0
    YITH Pre-Order for WooCommerce Version 2.9.0
    YITH WooCommerce Wishlist Version 3.19.0

    • This topic was modified 3 years, 2 months ago by seijuro.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi there,
    Thank you for contacting us!

    I tried it in my local environment and it’s working fine, so I guess you have any kind of custom functionality that produces this.
    Have you tried deactivating everything on the site and trying with a default WordPress theme?
    If yes, which plugin is causing it?

    Please, let us know.
    Have a nice day!

    Thread Starter seijuro

    (@seijuro)

    With default WordPress theme it work. But when i use Elessi Theme it gives me this error. The theme has a option to enable using YITH WooCommerce Wishlist as Wishlist.

    Hello there,

    We recommend you contact the support of your theme, since we do not have official compatibility with it.

    We will be attentive to your response.

    Best regards.

    Thread Starter seijuro

    (@seijuro)

    I talked with the theme support & they changed some theme js code to fix the issue. Now it works perfectly.

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

The topic ‘Plugin Error While Removing Coupon From Cart.’ is closed to new replies.