External Images – Fallback image

WP Intense Q & ACategory: External ImagesExternal Images – Fallback image
Kevin asked 2 weeks ago

I did an import with WP All Import and eerything worked as expected. One issue is we do not have all images for all products in our external librabry. I have the WooCommerce setting configured correctly to use a fallback image, but after the import I\’m seeing missing images for our products that do not have an external image.Is there a way External Images can use the WooCommer e fallback image if the remote image doesn\’t exist?Thanks

Kerstin K. replied 2 weeks ago

We have the same Problem and open a support ticket 10 days ago. No solution or no reaction. The next Problem is Image disappears after selecting a variation. Only a reload brings it back.

Dave H. Staff replied 1 week ago

Sorry about delay – impromptu holiday last week, back on the case now.

1 Answers
Dave Hilditch Staff answered 1 week ago

Hi Kevin – it definitely SHOULD be using the existing image if there is one, in fact it was altered so that if there is an uploaded image then that will be prioritised over the external image.

Can you please send credentials to your site – wp-admin and SFTP over in a ticket and I’ll take a look and figure out a fix?

Kevin replied 1 week ago

Hi Dave – just to clarify, if there is an external image for the product, it works perfectly. We do not have a case where we are uploading images to the product, we only use external images. The issue is when there is no external image found (image does not exist and there is a 404).

Do you have a private email where I can send debug credentials?

Kevin replied 6 days ago

Hi – I was able to resolve this issue. What I was doing was importing using WP All Import and setting the custom field “external_image_url” for all products – even if the external image didn’t exist. I had assumed that if the external image was not found (404 error) that the external image would not be used and the Woo fallback image would be used instead. That’s not the case, so I created a custom PHP function for WP All Import to use during the import to check if the file exists, and if it does the “external_image_url” will be set. If the file doesn’t exist the “external_image_url” doesn’t get set and the default Woo fallback image is used as expected.

We use cookies

We use cookies for various things on our site, including our on-site chat bubble (if you use it), our comment forms (if you use them) and for session handling (if you log in).

Other than that, we use cookies to identify where traffic came from to help us understand which traffic turns into sales, we use a cookie for Google Analytics traffic analysis and we use a cookie to customise adverts for our own products we think you'll be interested in.

You can read more detail in our privacy policy page. Please click 'Accept' or 'Decline' to continue.