You can easily bulk update images for products that already exist in your store. For that, you’ll need to import a file that contains a product identifier column (SKU or ID, or both) and columns with URLs of new images that you want your products to have. Say, you hired a photographer and need to replace existing photos with more visually appealing ones.
Product media (that’s pics or videos) data is rewritten after importing any new media. So updating images for products is just the same as adding new images.
In our example, we’ll update images for the product from Case study 1 that is already added to your store: a black dress with SKU “A0001”.
To create an import file:
- Open your spreadsheet editor.
- Enter “type” in the first cell. Then enter “product” in the row below it:
Now you’ve specified that the second row is about a product. - In the next column, enter “product_sku” and the SKU of the product (“A0001”):
Now the image data listed in this row will be added to a product with this specific SKU.Optionally, you can add the “product_internal_id” column and the ID of the product, or you can use both the ID and SKU columns to specify the product your media must be assigned to. - Then add the “product_media_main_image_url” column to the file header and enter a link to the new main product image on the web as its value for the “product” row:
You cannot give links to images stored on your device – the image has to be hosted somewhere on the internet (e.g., on Imgur or in a folder on your hosting account). - Next, similarly, enter the “product_media_gallery_image_url_1” column and a link to the first new product gallery image for it:
- Now add a “product_media_gallery_image_url_2” column and a link to the second product gallery image for it.
- Repeat the process until you have all the new images for this product listed. Number the images as you want them to be sorted in the gallery.
- (optional) Add more “product” rows with image URLs if you want to update images for other products in your store.
- Save the file as .csv.
- Go to Catalog → Data Import & Export in your store admin, click Upload Catalog File, and choose the file on your device.
- See if there are any errors and click Start Import.
That’s it! After the import is complete, product images in your store will be updated automatically.