• Using Gutenberg in the twenty-twenty-four FSE theme, I have a query loop block that displays products. Is there a way to add the wishlist button to the loop? I tried using the shortcode, and nothing was visible on the front end. I’m wondering if the shortcode can’t access the product ID this way.

    If you can point me in the right direction that’d be so helpful, thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Pablo Pérez

    (@pperez001)

    Hi,

    When having a custom loop , it is required to use shortcode option in our plugin settings and add the shortcode:

    [yith_wcwl_add_to_wishlist]

    Let us know if that is the shortcode you’ve been using.

    Thread Starter Amanda Hawkins

    (@ohamanda-1)

    Yes, that is the shortcode I’m using and nothing is displaying on the front end. Screenshot: https://share.cleanshot.com/2JmQjtWq

    Plugin Support Pablo Pérez

    (@pperez001)

    Hi,
    I could check your image and you are using the the new blocks for the products ( which are in beta). The shortcode won’t work in these blocks as they doesn’t have the global product which we use to get the information of the product. However the rest of the position should work in the new WooCommerce blocks, as long they have the elements that are hooked on ( for example if you are using any of the Add to cart positions, without that element the button will not display ). Let me know if you have any problem, for example, using “On top of the image” .

    Have a great day.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Adding button to product in Query Loop Block’ is closed to new replies.