Support » Plugin: TI WooCommerce Wishlist » If wishlist has product in do this, else, do nothing

  • Resolved aaronbennett2097


    I’d love to be able to add a button to the menu that ONLY shows if the wishlist has anything in, something like…

    If wishlist has product show view wishlist, else do nothing.

    Is this possible? Currently I can’t find a way to easily show a link to the customers wishlist.


Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Stan


    Hi @aaronbennett2097,

    There is an option in plugin General Settings to hide zero value that you can find at the very bottom of your screen. Or if you want to hide the button completely, it’s possible to achieve this using CSS.


    Hi Stan.

    Not sure if I was clear with my question

    I’m using the shortcode to show the wishlist heart in the top right of the header, but it always shows, even if the wishlist is empty.

    The zero value only seems to relate to the “show number of products in counter”, whereas I’d like to hide the actual icon if no items in wishlist too.

    Is there a bit of php that can check if wishlist has any items? Then I can wrap the shortcode in a conditional statement.

    Thanks and hope that clarifies what I’m looking for.


    Plugin Support Stan


    Can you please, contact us via our live chat and provide us with a link to your website, so we can assist you?

    Plugin Author templateinvaders


    Hi @aaronbennett2097

    You can use this method to get a number of products in a wishlist for the current user:

    If empty it will return 0 value

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘If wishlist has product in do this, else, do nothing’ is closed to new replies.