You are here

commerce1_profile.yml in Commerce Migrate 3.1.x

modules/commerce/migrations/commerce1_profile.yml

File

modules/commerce/migrations/commerce1_profile.yml
View source
  1. id: commerce1_profile
  2. label: Commerce customer profile
  3. migration_tags:
  4. - Drupal 7
  5. - Commerce
  6. - Content
  7. deriver: Drupal\commerce_migrate_commerce\Plugin\migrate\ProfileDeriver
  8. source:
  9. plugin: commerce1_profile
  10. profile_type:
  11. - billing
  12. - shipping
  13. process:
  14. profile_id: profile_id
  15. revision_id: revision_id
  16. # Change the Commerce 1 default customer bundle 'billing' to 'customer'.
  17. type:
  18. plugin: static_map
  19. source: type
  20. bypass: true
  21. map:
  22. billing: customer
  23. uid:
  24. -
  25. plugin: migration_lookup
  26. migration: d7_user
  27. source: uid
  28. no_stub: true
  29. -
  30. plugin: default_value
  31. default_value: 0
  32. strict: true
  33. -
  34. plugin: entity_exists
  35. entity_type: user
  36. -
  37. plugin: default_value
  38. default_value: 0
  39. status: status
  40. # This is a default if there is an entry in the commerce_address_defaults.
  41. is_default:
  42. plugin: callback
  43. callable: is_string
  44. source: cadtype
  45. created: created
  46. changed: changed
  47. data: data
  48. destination:
  49. plugin: entity:profile
  50. destination_module: profile
  51. migration_dependencies:
  52. required:
  53. - d7_user
  54. - commerce1_profile_type
  55. optional:
  56. - d7_field_instance