I have exported all my products to add article numbers in google sheets. Then I importet them back. I just realized that only the main image of each product has been imported, all other images are missing.
After this issue I tried something: I added a second picture to a particular product > exported that particular product > again deleted the second picture of this product in shopify > imported the csv file (product) back to shopify > the second pictures has not been imported back to shopify.
I know what my problem was. I uploaded the product pictures on the product pages. They are lost when you export these producta. You have to upload your pictures on the general pictures section in shopify:
By doing this, every single picture gets a URL which you copy and insert in your particular product page. Now, a link exists to each picture and they dont go lost.
Hope my explanation was fine and this is what you where looking for! Good luck
Just a note, we have an app that will allow you to locate missing images, also has a new feature that checks variants for images. It is called Image Audit, you can look into it if you want to see how it can work for you.
Ok so I know I’m a little late to the party but I thought I’d bring to the table a solution that works perfectly and won’t require any additional apps or hours of re-uploading images to your file repository and re-linking to your products, I had exactly the same issue described in this post, I exported my products to CSV, updated the prices and descriptions and when I re-imported the products only the first image and it’s associated alt tag was present. During this import failure I got an import error like this:
As correctly stated further up this post, if you upload an image directly to a product the image gets deleted when you import changes, whereas if the image is uploaded to the files repository and you select it via the product it creates a link, this way the image path is retained when you make any changes via the Shopify product import.
I reached out to Shopify Support and they gave me the following solution:
When a product image is deleted a copy of the image is retained, this process pulls back in the saved copy of the image and creates a new link
The Solution
Using your preferred text editor open your CSV file and do a find and replace on all image paths, look for /products/ and replace all instances with /deleted/products/ then save your CSV file and import to your store.
The result of doing this is that the images are pulled from the /deleted/products repository and re-imported as new files with a new file name and re-links them to your products. (As a test, if you then export the product, you’ll see that the image paths are different and no longer contain /deleted/).
Now go to a product in your Shopify admin and you’ll see all your images are back with their corresponding alt tags!
I thought this may still be useful as it’s still very much a current issue, thank you Daniela from Shopify Support for your solution.
I’m having this same issue, however I’m sourcing images from a different website host (Dropbox). Do I really need to download all of those tons of images and re-upload them into Shopify? This will take hours and I’d prefer just to keep using the “Add media from URL” method…anyone have a fix?
Seriously though, I did a full CSV export → price adjustment → import of my catalogue in February 2022 and I didn’t have this issue. Why oh why Shopify would you fatally hamstring the CSV import-export method in this way?
Working with the product export CSV’s is fiddly enough as it is (e.g. always needing the primary row for a product with its html body etc to be positioned above the other rows, makes sorting the csv while editing slightly nerve wracking when it shouldn’t be).
Thanks @PaulCarlisle
Your solution just made my day and saved lots of time that I have else would have spent in manually uploading images
A big thanks to @PaulCarlisle
This is absolutely brilliant and just saved me HOURS of work - thank you!
I’ll add to it that you don’t want to replace ALL instances of /products/ with /deleted/products - this did replace all of my secondary images but also deleted my main images (but it was easy enough to go back in the CSV and change the main images back to /products/). So, ONLY do the find and replace on the secondary images.
And it should work fine. Be careful when using find and replace, you’ll need an additional repeated identifier around /files/ becuase /files/ is used twice in the urls and replacing simply /files/ would lead to chaos. In my case it is 8/files/ as every url has it.