commerce1_profile.yml in Commerce Migrate 3.1.x
Same filename and directory in other branches
modules/commerce/migrations/commerce1_profile.yml
File
modules/commerce/migrations/commerce1_profile.ymlView source
- id: commerce1_profile
- label: Commerce customer profile
- migration_tags:
- - Drupal 7
- - Commerce
- - Content
- deriver: Drupal\commerce_migrate_commerce\Plugin\migrate\ProfileDeriver
- source:
- plugin: commerce1_profile
- profile_type:
- - billing
- - shipping
- process:
- profile_id: profile_id
- revision_id: revision_id
- # Change the Commerce 1 default customer bundle 'billing' to 'customer'.
- type:
- plugin: static_map
- source: type
- bypass: true
- map:
- billing: customer
- uid:
- -
- plugin: migration_lookup
- migration: d7_user
- source: uid
- no_stub: true
- -
- plugin: default_value
- default_value: 0
- strict: true
- -
- plugin: entity_exists
- entity_type: user
- -
- plugin: default_value
- default_value: 0
- status: status
- # This is a default if there is an entry in the commerce_address_defaults.
- is_default:
- plugin: callback
- callable: is_string
- source: cadtype
- created: created
- changed: changed
- data: data
- destination:
- plugin: entity:profile
- destination_module: profile
- migration_dependencies:
- required:
- - d7_user
- - commerce1_profile_type
- optional:
- - d7_field_instance