This week’s snippet is about one of the most popular WooCommerce plugins on the WordPress repository: YITH WooCommerce Wishlist developed by YITHEMES.

With over 500,000+ active installations, you can probably understand why this is extremely on demand. Having a “wishlist” on your WooCommerce website is a great idea: customers can save their desired products and get back later to complete the purchase.

One of the most requested customizations of such plugin is to display the wishlist buttons on the shop (also called product archive or product loop) pages, under each product’s add to cart button. And the fix is extremely simple!

Display YITH Wishlist buttons on the WooCommerce product archive

PHP Snippet: Display YITH Wishlist Buttons @ Shop Page – WooCommerce

* @snippet Display YITH Wishlist Buttons @ Shop Page  - WooCommerce
* @how-to Get FREE
* @sourcecode
* @author Rodolfo Melogli
* @testedwith WooCommerce 3.2.4

add_action( 'woocommerce_after_shop_loop_item', 'bbloomer_display_yith_wishlist_loop', 97 );

function bbloomer_display_yith_wishlist_loop() {
echo do_shortcode( "[yith_wcwl_add_to_wishlist]" );


Leave a Reply