• Resolved frederik7920

    (@frederik7920)


    Hi,

    I created a grouped product.
    Now I wanted to add for each product a little thumbnail near the quantity.

    Does someone has the code I can add to do that?

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Mirko P.

    (@rainfallnixfig)

    Hi @frederik7920 ??

    It sounds like you want to add thumbnails to grouped products in WooCommerce, correct?

    Can you check if the snippet here works for you?

    https://rynaldo.com/how-to-add-thumbnails-to-grouped-products-in-woocommerce/

    As suggested in the article, you may want to add the PHP code to the child theme’s functions.php file or use a plugin like Code Snippets.

    Hope this helps.

    Thread Starter frederik7920

    (@frederik7920)

    Thanks for your quick reply.
    I tried it but it doesn’t work for me…

    Hello,

    The snippet Mirko suggested works properly on my test site:

    Link to image: https://snipboard.io/TyGhYD.jpg

    If the snippet doesn’t work for your site, there might be a conflict with your theme or another plugin. You can confirm it by deactivating all plugins except WooCommerce and switching theme to Storefront. If you have any other snippets you’ve applied previously, you may want to temporarily disable them too.

    Thread Starter frederik7920

    (@frederik7920)

    I get an error with the snippet: line 4: we cannot declare wc_grouped_product_thumbnail another time…
    I will try what you suggested
    Thanks!

    Mirko P.

    (@rainfallnixfig)

    It looks like something is conflicting with that declaration.

    Please follow the steps for a conflict test as Maykato suggested to locate the culprit.

    Cheers.

    Hi @frederik7920

    We’ve not heard back from you in a while, so I’m marking this thread as resolved. If you have further questions, please feel free to open a new topic.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Grouped products thumbnail’ is closed to new replies.