Add to wishlist inside shop loop, wrong id on add to wishlist block
-
I’m having an issue with your plugin, while using the WordPress site editor on inside a product loop.
On the product collection page (basically a product category page), I have the plugin on the product card. I have left the blocks empty, as I want it to dynamically fill the product_id info. But the issue I first noticed was when I tried clicking on the heart (my add to wishlist -icon), it seemed to add all items to the wishlist. Except it didn’t, it only adds the very first product to the list regardless of which product I tried adding. Turns out, the add to wishlist -block has set the same id (the first product id) on each product on the page.
Is there a way to dynamically set the product_id?
- You must be logged in to reply to this topic.