Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
This topic describes how to import assets in Episerver Commerce to the Episerver asset management system, using the AssetImporter command-line tool, and associate the assets with Catalog content.
AssetImporter <mapping_asset_file> <asset_folder> <commerce_core_site_path> [asset_root] [-uselegacy] [-byasset] [-verbose]
CSV file example:
Variation Code,Image ID
Jackets-Peacoats-Hooded,Jackets-Peacoats-Hooded.jpg
Jackets-Peacoats-Ruffle,Jackets-Peacoats-Ruffle.jpg
Jackets-Peacoats-Asymmetrical,Jackets-Peacoats-Asymmetrical.jpg
65990B,400x300.png
72008B,400x300.png
24215B,400x300.png
Fashion,400x300.png,0
Fashion,980x150.png,2
Fashion,980x300.png,1
Note: When you have multiple groups in the asset folder, you only need to have one line in the CSV file. The import automatically imports files with the same name from the existing asset groups.
In this case, Episerver Commerce uses the Episerver asset system.
To import using Asset Management as CMS-based content, use the following command:
AssetImporter <mapping_asset_file> <asset_folder> <commerce_core_site_path> [asset_root]
If CMS already has asset-based content, use the -mappingonly parameter to associate asset content with Catalog Node/Entry.
AssetImporter <mapping_asset_file> '' <commerce_core_site_path> -mappingonly
In this case, Episerver Commerce uses the ECF BLOB Provider to manage asset files and adds the asset to Catalog Node/Entry through the Asset tab in Catalog Management.
To import using the legacy Asset Management system, use the uselegacy parameter:
AssetImporter <mapping_asset_file> <asset_folder> <commerce_core_site_path> [asset_root] uselegacy
Last updated: Dec 09, 2016