Hello,
I am using the WoodMart theme and I would like to change the default behavior of the wishlist button on the shop page and product loops.
The issue:
Currently, when a user clicks the wishlist heart icon a second time (on a product already added), the theme redirects them to the Wishlist page.
What I need:
I want to disable this redirect. Instead, I want the second click to act as a toggle: it should remove the product from the wishlist via AJAX while staying on the same page.
I have already tried setting “Save button state” to NO, but I want the button to remain “filled” if the product is in the list, and only remove it upon the second click.
Could you please provide a safe snippet or a setting to achieve this?
Thank you!