I’m trying to use this plugin (YITH WooCommerce Wishlist – WordPress plugin | WordPress.org) to have a wishlist. In my products-archive page I want a “add to wishlist” button next to the add to cart button for every product. Also, how can I create a tooltip that appears above the wishlist icon in my header that displays the amount of items I have in my wishlist?
The YITH “add to wishlist” button in the product-single page adds this query “/product/slug?add_to_wishlist={id}”. If I could find a way to get a product’s id in my product-archive I could add a button element that redirects to that url, right?