You are here

uc7_order_product.yml in Commerce Migrate 3.1.x

modules/ubercart/migrations/uc7_order_product.yml

File

modules/ubercart/migrations/uc7_order_product.yml
View source
  1. # Ubercart 7 Line Items Migration
  2. id: uc7_order_product
  3. label: Migrate order line items from Ubercart
  4. migration_tags:
  5. - Drupal 7
  6. - Ubercart
  7. - Content
  8. source:
  9. plugin: uc_order_product
  10. process:
  11. type:
  12. plugin: default_value
  13. default_value: default
  14. order_item_id: order_product_id
  15. purchased_entity:
  16. plugin: migration_lookup
  17. migration: uc7_product_variation
  18. source: nid
  19. title: title
  20. quantity: qty
  21. 'unit_price/number': price
  22. 'unit_price/currency_code': currency
  23. 'total_price/number': total_price
  24. 'total_price/currency_code': currency
  25. data: data
  26. created: created
  27. changed: modified
  28. uses_legacy_adjustments:
  29. plugin: default_value
  30. default_value: false
  31. adjustments:
  32. -
  33. plugin: uc_order_item_adjustment
  34. source: adjustments
  35. -
  36. plugin: commerce_adjustments
  37. destination:
  38. plugin: entity:commerce_order_item
  39. destination_module: commerce_order
  40. migration_dependencies:
  41. required:
  42. - d7_node