Toggle item in wishlist instead of add only
-
This is not a request for help, but rather a suggestion for improvement (so feel free to mark it as solved). In terms of usability, it is confusing that the compare button toggles the item in and out of the list, while the wish-list button adds item to the list only.
In order to solve this, only one line of code is needed. In the tm-woowishlist.js file you need to update the lines:
if( button.hasClass( 'in_wishlist' ) ) { return; }
update it to:
if( button.hasClass( 'in_wishlist' ) ) { tmWoowishlistRemove( event ); return; }
Afterwards minify this script and copy the minified code to tm-woowishlist.min.js.
- The topic ‘Toggle item in wishlist instead of add only’ is closed to new replies.