You are here

uc7_product_variation.yml in Commerce Migrate 3.0.x

modules/ubercart/migrations/uc7_product_variation.yml

File

modules/ubercart/migrations/uc7_product_variation.yml
View source
  1. id: uc7_product_variation
  2. label: Migrate product variations from Ubercart
  3. migration_tags:
  4. - Drupal 7
  5. - Ubercart
  6. - Content
  7. source:
  8. plugin: uc7_product_variation
  9. process:
  10. type:
  11. -
  12. plugin: migration_lookup
  13. migration: uc7_product_variation_type
  14. source: type
  15. -
  16. plugin: default_value
  17. # 'default' is the default 'commerce_product_variation' bundle initially
  18. # installed
  19. default_value: default
  20. uid: node_uid
  21. sku: model
  22. title: title
  23. 'price/number': sell_price
  24. 'price/currency_code': currency
  25. # The product_id field is NULL after this migration.
  26. # It is a backreference to the product ID. The product entity class's
  27. # postSave() updates this whenever a product entity is saved, therefore a
  28. # subsequent product migration will set this on the product variations created
  29. # by this migration.
  30. #product_id:
  31. status: status
  32. created: created
  33. changed: changed
  34. destination:
  35. plugin: entity:commerce_product_variation
  36. destination_module: commerce_product
  37. migration_dependencies:
  38. required:
  39. - uc_attribute_field_instance