skip to Main Content

I use the plugin TI WooCommerce Wishlist. You need to add a wishlist button to the product. Output shortcode <?php echo do_shortcode('[ti_wishlist_add to wishlist product_id=""]');?> . How can I get the current product id ? Maybe there are other plugins ?

2

Answers


  1. If You want to show the wishlist icon on the default product page then, please Follow this Doc TI WooCommerce Wishlist

    Here Is the settings

    Or If you are running a custom loop then you how to get the id in WordPress loop.
    Hope this will help you.

    Login or Signup to reply.
  2. First you need to change some settings. Go to: Product listing Button Settings -> Button Position -> and select Custom position with code.

    I was searching for something like this. I solved adding this shortcode into the custom loop design. [ti_wishlists_addtowishlist loop=yes].

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search