You are here

public static function CommerceMigrateExampleProductsCsv::csvColumns in Commerce Migrate 7

Provide the names of the incoming CSV file columns.

WARNING! Column names MUST BE IN ORDER to CSV file structure!

Return value

string[] An associative array where key is a machine name of a field from CSV file and value - human-readable name of a CSV column.

Overrides CommerceMigrateExampleMigration::csvColumns

File

commerce_migrate_example/migrations/abstractions/products.inc, line 17
Represents "products.csv".

Class

CommerceMigrateExampleProductsCsv
Class CommerceMigrateExampleProductsCsv.

Code

public static function csvColumns() {
  return array(
    'sku' => 'SKU',
    'title' => 'Title',
    'price' => 'Price',
    'currency_code' => 'Currency code',
    'image' => 'Image',
    'description' => 'Description',
  );
}