WooCommerce: display “add to wishlist” button on shop page

WooCommerce has an excellent add-on called “WooCommerce Wishlists” that you can get here. This add-on adds an “add to wishlist” button on the product page by default. Here is a quick snippet to add this button on archive pages too (categories pages, main shop page etc…).

Here is the final result:

woocommerce-add-to-wishlist

Place that snippet in functions.php in your theme’s folder.

<?php
add_action( 'woocommerce_after_shop_loop_item_title', array( WC_Wishlists_Plugin, 'add_to_wishlist_button' ), 10 );