View Categories

“Add to Wishlist” Also Triggers “Add to Cart”

Table of Contents

Problem Description #

Users report that when they click the “Add to Wishlist” button, the item is not only added to their wishlist but also erroneously added to the cart.

Common symptoms

  • After “Add to Wishlist,” product appears both in wishlist and in cart. WordPress.org
  • Issue disappears when switching to default theme / disabling other plugins, indicating a conflict. WordPress.org

Cause

  • Conflict between Wishlist plugin’s click handler and another JS or plugin that binds “Add to Cart” to the same button or event. Some themes or third-party plugins override add-to-cart behavior, causing both actions to trigger.

Solution (step‑by‑step)

  1. Test with default theme & minimal plugins: Temporarily switch to a default theme and deactivate all plugins except WooCommerce + Wishlist. Retry “Add to Wishlist.” If it works correctly, conflict confirmed.
  2. Identify conflicting plugin or theme: Re-enable plugins one-by-one (or switch back theme) and test after each to find which causes the double action.
  3. If you find a conflicting plugin/theme: Contact its support to request separation of “Add to Cart” and “Add to Wishlist” click events; or customize button/actions manually (advanced).
  4. As a short-term workaround: Use a different wishlist button placement (e.g., separate custom button), or disable AJAX add-to-cart / combined add-to-cart hooks in theme/plugins.
  5. Clear any caching or optimization (minify / JS bundling) plugins: Sometimes combined/minified scripts change event binding order, exclude wishlist JS from minification.

Prerequisites

  • Admin access; ability to switch themes / disable plugins / test incremental changes.

Additional Notes

  • Document any customizations made to ensure future updates won’t reintroduce the conflict.
  • Encourage users to test after updates of theme or plugins that affect product loops / buttons.

 

Wishlist for WooCommerce