uc7_profile_billing.yml in Commerce Migrate 3.0.x
Same filename and directory in other branches
modules/ubercart/migrations/uc7_profile_billing.yml
File
modules/ubercart/migrations/uc7_profile_billing.ymlView source
- # Ubercart 7 Customer Billing Profile Migration
- id: uc7_profile_billing
- label: Migrate customer billing profiles from Ubercart
- migration_tags:
- - Drupal 7
- - Ubercart
- - Content
- source:
- plugin: uc_profile_billing
- process:
- 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
- # Get the profile id for this uid, if it exists.
- profile_id:
- -
- plugin: entity_lookup
- source: '@uid'
- value_key: uid
- bundle_key: type
- bundle: customer
- entity_type: profile
- access_check: false
- ignore_case: true
- -
- plugin: skip_on_empty
- method: process
- type:
- plugin: default_value
- default_value: customer
- status: status
- is_default: is_default
- 'address/given_name': billing_first_name
- 'address/family_name': billing_last_name
- 'address/organization': billing_company
- 'address/address_line1': billing_street1
- 'address/address_line2': billing_street2
- 'address/locality': billing_city
- country:
- plugin: skip_on_empty
- method: process
- source: country_iso_code_2
- administrative_area:
- plugin: skip_on_empty
- method: process
- source: zone_code
- 'address/administrative_area':
- plugin: skip_on_empty
- method: process
- source: '@administrative_area'
- 'address/postal_code': billing_postal_code
- 'address/country_code': '@country'
- phone: billing_phone
- created: created
- changed: modified
- destination:
- plugin: 'entity:profile'
- destination_module: profile
- migration_dependencies:
- required:
- - d7_user
- - uc7_profile_type_customer