Woocommerce product images not displaying issue

Hi

We are having issues with some of the product images not displaying and had to do some coding to the woocommerce plugin to fix this however this will be lost on the update.

The product image sizes are coming as zero and one in the single product page. I made changes in function wc_get_gallery_image_html, I set the image size to ‘full’ in ‘wp_get_attachment_image’ and manually added ‘data-large_image_width’ => 500, ‘data-large_image_height’ =>500,. Now it is working fine. File: /wp-content/plugins/woocommerce/includes/wc-template-functions.php

I have noticed it has some out of date files as well- see.
Your theme (X – Child Theme) contains outdated copies of some WooCommerce template files. These files may need updating to ensure they are compatible with the current version of WooCommerce. Suggestions to fix this:

Update your theme to the latest version. If no update is available contact your theme author asking about compatibility with the current WooCommerce version.
If you copied over a template file to change something, then you will need to copy the new version of the template and apply your changes again.

Please advise

Thanks
Jacinta

Hi There,

I couldn’t replicate this issue on my end. Which version of WooCommerce plugin are you using? I’m using version 3.5.1 and the product image and thumbnails are working fine:

Please also try testing a plugin conflict. You can do this by deactivating all third-party plugins, and see if the problem remains. If it’s fixed, you’ll know a plugin caused the problem, and you can narrow down which one by reactivating them one at a time.

I checked and this template notices don’t actually cause any bugs or issues. So you may ignore it for now.
Our developers is already aware of this and the messages will be fixed when we roll out next release updates soon.

Regards!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.