Title: Plugin Error While Removing Coupon From Cart.
Last modified: March 21, 2023

---

# Plugin Error While Removing Coupon From Cart.

 *  Resolved [seijuro](https://wordpress.org/support/users/seijuro/)
 * (@seijuro)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/plugin-error-while-removing-coupon-from-cart/)
 * 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.
 *     ```wp-block-code
       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
 *     ```wp-block-code
       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
 *     ```wp-block-code
       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](https://wordpress.org/support/users/seijuro/).

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

 *  [Héctor.G](https://wordpress.org/support/users/hectorgc/)
 * (@hectorgc)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/plugin-error-while-removing-coupon-from-cart/#post-16580774)
 * 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](https://wordpress.org/support/users/seijuro/)
 * (@seijuro)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/plugin-error-while-removing-coupon-from-cart/#post-16581643)
 * 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.
 *  [Juan Coronel](https://wordpress.org/support/users/juaancmendez/)
 * (@juaancmendez)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/plugin-error-while-removing-coupon-from-cart/#post-16589097)
 * 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](https://wordpress.org/support/users/seijuro/)
 * (@seijuro)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/plugin-error-while-removing-coupon-from-cart/#post-16613723)
 * 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.

 * ![](https://ps.w.org/yith-woocommerce-wishlist/assets/icon-128x128.gif?rev=3129302)
 * [YITH WooCommerce Wishlist](https://wordpress.org/plugins/yith-woocommerce-wishlist/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yith-woocommerce-wishlist/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yith-woocommerce-wishlist/)
 * [Active Topics](https://wordpress.org/support/plugin/yith-woocommerce-wishlist/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yith-woocommerce-wishlist/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yith-woocommerce-wishlist/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [seijuro](https://wordpress.org/support/users/seijuro/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/plugin-error-while-removing-coupon-from-cart/#post-16613723)
 * Status: resolved