• Resolved Atta Ur Rehman

    (@atta-ur-rehman)


    Hi there. wishlist link is not showing on shop page rather it is just showing on single product page.

    Secondly is there a way to show wishlist link or button on a custom product list. I created a plugin showing product carousel. I want to show it there.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hello there,
    hope you are doing well! ??

    To show the wishlist button in the shop page, please add the following code on the functions.php of your theme

    if( ! function_exists( 'yith_add_loop_wishlist' ) ){
        function yith_add_loop_wishlist(){
            echo do_shortcode( '[yith_wcwl_add_to_wishlist]' );
        }
    }
    add_action( 'woocommerce_after_shop_loop_item', 'yith_add_loop_wishlist' );

    This function allows showing wishlist button on the shop page.

    Check it and let us know.

    About the second request, maybe if your custom product page has the correct hook you can add a similar code like to add this to the shop, but for us is so difficult to answer you completely secure without test it, can you give us more information about this custom page?

    Have a nice day!

    Plugin Author YITHEMES

    (@yithemes)

    Hello,
    hope you are doing well! ??

    Seem that this thread doesn’t have any activity, so we think that the problem is solved and we will proceed to close it.

    Anyway, if you have any issue don’t hesitate to contact us.

    Have a good day!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wishlist button/link is not showing on shop page’ is closed to new replies.