A newer version of this documentation is available: View the Latest Version

Product Media

Pacemaker Import Pro provides the command import:products:media command for the product Media import.

The individual parts of the file name must match the pattern as followed:
<IMPORT-DIRECTORY>/<PREFIX>_<FILENAME>_<COUNTER>.<SUFFIX>
<IMPORT-DIRECTORY>:

is by default the location of your working directory <ROOT-DIRECTORY>/var/pacemaker/import/

PREFIX:

The <PREFIX> of the import filename represents the product-media-import area.

DELIMITER ( _ ):

The mandatory Delimiter ( _ ) for the import filename between <PREFIX> and <FILENAME> is a underscore ( _ ).

FILENAME:

The filename is a autogenerated combination of date and time.

  • As a result, the filename look like product-media-import_20190608-114344_01.csv.

DELIMITER ( _ ):

The mandatory Delimiter ( _ ) for the structured filename between <FILENAME> and <COUNTER> is underscore ( _ ).

COUNTER:

is a incremental number with two digits starting with 01.

SUFFIX (filename extension):

The Pacemaker Import Pro uses the <SUFFIX> .csv as default for the import files.

.OK file:
Bunch import:
  • The Bunch import requires the same predefined filename structure as described.

Your CSV file var/pacemaker/import/product-media-import_20190608-114344_01.csv is now ready for import.

Columns

The CSV file with the attributes for Magento 2 CE/EE consists of the following columns
Column Name Type Example Description

sku

varchar

24-MB01

Product SKU to import the tier price

store_view_code

varchar

default

Store(s) view-specific attribute translations

  • If blank, the row contains the data for the admin store view

attribute_set_code

varchar

Default

Comma ( , ) separated list of attribute_set_code for media to get created

product_type

varchar

simple

Product Type

base_image

varchar

/m/b/mb01-blue-0.jpg

Base Image path

base_image_label

varchar

image label

Base image label

base_image_position

int

3

Base image position

small_image_label

varchar

joust-duffle-bag

Small image label

small_image_position

int

3

Small image position

thumbnail_image

varchar

/m/b/mb01-blue-0.jpg

thumbnail image path

thumbnail_image_label

varchar

thumbnail label

Thumbnail image label

thumbnail_image_position

int

3

Thumbnail image position

swatch_image

varchar

``

swatch image path

swatch_image_position

int

``

swatch image position

additional_images

varchar

/a/z/AzXrs1c92RY.jpg,/m/b/mb03-black-0_alt1.jpg

Comma ( , ) separated list of images

additional_image_labels

varchar

My Video,24MB-03 Alt

additional image labels

additional_image_positions

int

1,2

Comma ( , ) separated list of additional images position

Product Media support more data see file below

sku,store_view_code,attribute_set_code,product_type,base_image,base_image_label,base_image_position,small_image,small_image_label,small_image_position,thumbnail_image,thumbnail_image_label,thumbnail_image_position,swatch_image,swatch_image_label,swatch_image_position,additional_images,additional_image_labels,additional_image_positions,hide_from_product_page,disabled_images,base_video,base_video_title,base_video_description,base_video_provider,base_video_metadata,small_video,small_video_title,small_video_description,small_video_provider,small_video_metadata,swatch_video,swatch_video_title,swatch_video_description,swatch_video_provider,swatch_video_metadata,thumbnail_video,thumbnail_video_title,thumbnail_video_description,thumbnail_video_provider,thumbnail_video_metadata,additional_videos,additional_video_titles,additional_video_descriptions,additional_video_providers,additional_video_metadata
24-MB01,,Default,simple,/m/b/mb01-blue-0.jpg,,3,/m/b/mb01-blue-0.jpg,,3,/m/b/mb01-blue-0.jpg,,3,,,,"/a/z/AzXrs1c92RY.jpg,/m/b/mb03-black-0_alt1.jpg","My Video,24MB-03 Alt","1,2",,,,,,,,,,,,,,,,,,,,,,,https://youtu.be/AzXrs1c92RY,M2IF Product Import,This video shows a simple M2IF product import in a Magento 2 shop instance.,YouTube,M2IF