Hi. How can we help?

Add wishlist button on shop page after add to cart

With the following code, you'll add the wishlist button on shop page:

if( defined( 'YITH_WCWL' ) && ! function_exists( 'yith_wcwl_add_wishlist_to_loop' ) ){
function yith_wcwl_add_wishlist_to_loop(){
echo do_shortcode( '[yith_wcwl_add_to_wishlist]' );
add_action( 'woocommerce_after_shop_loop_item', 'yith_wcwl_add_wishlist_to_loop', 15 );
Was this article helpful?
1 out of 7 found this helpful

Back to Help Center >