To import/export gallery images, go to Catalog > Products from the Storefront module menu. Click on the Import or Export link. Then select "Gallery". You must first upload the physical image files to a temporary staging folder under your portal root before starting the import procedure. After running the import, you can remove the image files you had uploaded to the temporary folder.
Column |
Type |
Data required |
Description |
Example |
Act |
String |
Yes |
Type of import action to perform (Insert = i, Update = u, Delete = d) |
i |
GalleryID |
Integer |
Yes/No |
Database object identifier. This value is required when performing an update or delete action. |
9 |
AlternateText |
String |
No |
SEO alternate text for the image. |
Popular mechanics. |
CategoryID |
Integer |
Yes/No |
Associate this gallery to the Category object by its CategoryID. If you specify the CategoryID, the CategoryKey will be ignored. |
|
CategoryKey |
String |
Yes/No |
Associate this gallery to the Category object by its CategoryKey. If you specify the CategoryID, the CategoryKey will be ignored. |
|
CreateDate |
DateTime |
No |
|
|
DisplayOrder |
Integer |
Yes |
Gallery sort order from smallest to largest number. |
1000 |
Family |
Integer |
Yes |
Group similar galleries of different Formats together based on this same family number. e.g. You want the customer to be able to click to see a larger image so you upload 2 images of different sizes (one "Detailed" and one "Display" format). You want to make sure they both have the same Family value. The system will recognize these 2 images as the same image. |
10 |
Format |
Integer |
Yes |
Detailed = 1, Display = 2, Thumbnail = 3 |
2 |
Height |
Integer |
Yes |
The resolution height of the gallery object. The value is primarily used for videos. For images, you may specify any arbitrary value. |
480 |
ProductID |
Integer |
Yes/No |
Associate this gallery to a product by its ProductID. If you specify ProductID, the ProductKey will be ignored. |
1 |
ProductKey |
String |
Yes/No |
Associate this gallery to a product by its ProductKey. If you specify ProductID, the ProductKey will be ignored. |
|
ProductVariantID |
Integer |
Yes/No |
Associate this gallery to a product variant by its ProductVariantID. If you specify ProductVariantID, the ProductVariantKey will be ignored. |
1 |
ProductVariantKey |
String |
Yes/No |
Associate this gallery to a product variant by its ProductVariantKey. If you specify ProductVariantID, the ProductVariantKey will be ignored. |
|
StageMediaFile |
String |
Yes |
The file path of the image or video is relative to the portal root. Do not specify the path to the portals folder (e.g. "portals\0\"). Only .gif, .jpg, .jpeg, .png, .mp4 and .webm are supported. |
Temp\1.jpg |
UpdateDate |
DateTime |
No |
|
|
Width |
Integer |
Yes |
The resolution width of the gallery object. The value is primarily used for videos. For images, you may specify any arbitrary value. |
1240 |