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 ?
Question posted in Woocommerce
The official Woocommerce documentation can be found here.
The official Woocommerce documentation can be found here.
2
Answers
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.
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].