You are here

commerce1_product_variation.yml in Commerce Migrate 8.2

modules/commerce/migrations/commerce1_product_variation.yml

File

modules/commerce/migrations/commerce1_product_variation.yml
View source
  1. id: commerce1_product_variation
  2. label: Commerce product variation
  3. migration_tags:
  4. - Drupal 7
  5. - Commerce
  6. - Content
  7. deriver: Drupal\commerce_migrate_commerce\Plugin\migrate\ProductVariationDeriver
  8. source:
  9. plugin: commerce1_product
  10. process:
  11. variation_id: product_id
  12. # The product_id field is NULL after this migration.
  13. # It is a backreference to the product ID. The product entity class's
  14. # postSave() updates this whenever a product entity is saved, therefore a
  15. # subsequent product migration will set this on the product variations created
  16. # by this migration.
  17. #product_id:
  18. revision_id: revision_id
  19. sku: sku
  20. title: title
  21. type: type
  22. language: language
  23. uid: uid
  24. status: status
  25. created: created
  26. changed: changed
  27. data: data
  28. price:
  29. plugin: commerce1_migrate_commerce_price
  30. source: commerce_price
  31. destination:
  32. plugin: 'entity:commerce_product_variation'
  33. destination_module: commerce_product
  34. migration_dependencies:
  35. required:
  36. - commerce1_product_variation_type
  37. optional:
  38. - d7_field_instance