commerce1_order_item.yml in Commerce Migrate 3.1.x
Same filename and directory in other branches
  modules/commerce/migrations/commerce1_order_item.yml
File
modules/commerce/migrations/commerce1_order_item.ymlView source
- id: commerce1_order_item
- label: Commerce order item
- deriver: Drupal\commerce_migrate_commerce\Plugin\migrate\OrderItemDeriver
- migration_tags:
-   - Drupal 7
-   - Commerce
-   - Content
- source:
-   plugin: commerce1_line_item
- process:
-   order_item_id: line_item_id
-   revision_id: revision_id
-   type:
-     -
-       plugin: static_map
-       source: type
-       bypass: true
-       map:
-         # Shipping is done in the order migration.
-         shipping: false
-         # Discounts are migrated with product line items, not individually.
-         commerce_discount: false
-     -
-       plugin: skip_on_empty
-       method: row
-     -
-       plugin: default_value
-       default_value: default
-   uid: uid
-   status: status
-   created: created
-   changed: changed
-   title: title
-   purchased_entity:
-     plugin: migration_lookup
-     migration: commerce1_product_variation
-     source: commerce_product
-   quantity: quantity
-   adjustments:
-     -
-       plugin: commerce1_order_item_discount_adjustment
-       source: order_components/0/data/components
-     -
-       plugin: commerce_adjustments
-   uses_legacy_adjustments:
-     plugin: default_value
-     default_value: false
- destination:
-   plugin: entity:commerce_order_item
-   destination_module: commerce_order
- migration_dependencies:
-   required:
-     - commerce1_store
-     - commerce1_product_variation
-     - commerce1_order_item_type
-   optional:
-     - d7_field_instance
