You can format image-file names so that they are automatically are assigned to products and collections in your catalog when you upload them.
Format file names for product and collection images as follows:
<product_id>.<name>.<file_type>
<collection_id>.<name>.file_type>
<product_id> is the product’s Product ID property. See Create and edit products for more information.
<collection_id> is the collection’s Collection ID property. See Create collections for more information.
<name> is the descriptive name portion of the file.
<file_type> is the file extension. Only JPG/JPEG, PNG, and GIF files can be automatically assigned to products and collections.
For example, suppose you want to assign several images to a pair of boots whose product ID is xprod2102
. You could upload the following files:
xprod2102.bootsideview.png
xprod2102ridingboottopview.png
xprod2102.ridingbootfrontview.png
Keep the following in mind when you name media files to upload:
A file cannot be assigned to a product or collection if a file of the same name is already assigned to it.
The file name is case-sensitive. For example, the system considers
xprod030.rattanchair.jpg
andxprod030.Rattanchair.jpg
to be two different files.Remember that product IDs are case sensitive.
xprod030
andXPROD030
are different product IDs.
Note: You can also import assignments in bulk for images that you have already uploaded. See Import image assignments for more information.