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?
http://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.
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.
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!
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.