You are here

public property CommercePrice::$fieldNameMap in Commerce Migrate 3.0.x

Same name and namespace in other branches
  1. 8.2 modules/commerce/src/Plugin/migrate/field/commerce1/CommercePrice.php \Drupal\commerce_migrate_commerce\Plugin\migrate\field\commerce1\CommercePrice::fieldNameMap
  2. 3.1.x modules/commerce/src/Plugin/migrate/field/commerce1/CommercePrice.php \Drupal\commerce_migrate_commerce\Plugin\migrate\field\commerce1\CommercePrice::fieldNameMap

Field name map.

The field names on orders are different in Commerce 2 than Commerce 1.

Type: array

File

modules/commerce/src/Plugin/migrate/field/commerce1/CommercePrice.php, line 27

Class

CommercePrice
Commerce price migrate field plugin.

Namespace

Drupal\commerce_migrate_commerce\Plugin\migrate\field\commerce1

Code

public $fieldNameMap = [
  // The order total is now an Order total_price.
  'commerce_order_total' => 'total_price',
  // Line item total is now an Order Item total_price.
  'commerce_total' => 'total_price',
  'commerce_unit_price' => 'unit_price',
];