I am writing a customized migration module from a legacy system. I’ve all of my orders and order objects being migrated, however Drupal Developer commerce_order__order_items
desk shouldn’t be being populated.
My orders migration:
id: my_order_data label: My orders migration_group: mygroup migration_tags: - kentico - orders supply: plugin: csv ids: [OrderID] path: 'public://import/program/orders.information.csv' header_row_count: 1 course of: order_number: OrderInvoiceNumber sort: plugin: static_map supply: sort default_value: default map: commerce_order: default uid: - plugin: migration_lookup migration: my_user_data supply: OrderCreatedByUserID no_stub: true - plugin: default_value default_value: 0 strict: true - plugin: entity_exists entity_type: consumer - plugin: default_value default_value: 0 state: plugin: default_value default_value: accomplished created: plugin: callback supply: OrderDate callable: strtotime modified: plugin: callback supply: OrderLastModified callable: strtotime positioned: plugin: callback supply: OrderDate callable: strtotime accomplished: plugin: callback supply: OrderDate callable: strtotime mail: CustomerEmail store_id: plugin: default_value default_value: 1 billing_profile_data: - plugin: migration_lookup migration: my_profile_data supply: OrderBillingAddressID no_stub: true billing_profile/target_id: - plugin: skip_on_empty technique: course of supply: '@billing_profile_data' - plugin: extract index: [0] billing_profile/target_revision_id: - plugin: skip_on_empty technique: course of supply: '@billing_profile_data' - plugin: extract index: [0] total_price/quantity: OrderTotalNumber total_price/currency_code: plugin: default_value default_value: 'USD' total_paid/quantity: OrderTotalNumber total_paid/currency_code: plugin: default_value default_value: 'USD' changes: plugin: my_order_adjustment_shipping vacation spot: plugin: entity:commerce_order destination_module: commerce_order migration_dependencies: required: - my_user_data - my_profile_data dependencies: enforced: module: - my_migration
My order objects:
id: my_order_item_data label: My order objects migration_group: mygroup migration_tags: - kentico - orders - objects supply: plugin: csv ids: [OrderItemID] path: 'public://import/program/order-items.information.csv' header_row_count: 1 course of: sort: plugin: default_value default_value: 'default' order_id: - plugin: migration_lookup migration: my_order_data supply: OrderItemOrderID no_stub: true - plugin: default_value default_value: 0 strict: true - plugin: entity_exists entity_type: commerce_order - plugin: default_value default_value: 0 purchased_entity: bar: plugin: static_map supply: OrderItemSKUID map: 377: 67 378: 66 ... default_value: 0 title: OrderItemSKUName amount: OrderItemUnitCount unit_price/quantity: OrderItemUnitPrice unit_price/currency_code: plugin: default_value default_value: 'USD' total_price/quantity: OrderItemTotalPriceInMainCurrency total_price/currency_code: plugin: default_value default_value: 'USD' created: plugin: callback supply: OrderItemLastModified callable: strtotime modified: plugin: callback supply: OrderItemLastModified callable: strtotime uses_legacy_adjustments: plugin: default_value default_value: false vacation spot: plugin: entity:commerce_order_item destination_module: commerce_order migration_dependencies: required: - my_order_data dependencies: enforced: module: - my_migration
I’ve tried to look into customized course of capabilities, however I am afraid I do not know the place to essentially begin with that. Drupal Development Service commerce migrate module is not terribly useful with it is CSV instance.