commerce1_tax_type.yml in Commerce Migrate 3.1.x
Same filename and directory in other branches
modules/commerce/migrations/commerce1_tax_type.yml
File
modules/commerce/migrations/commerce1_tax_type.ymlView source
- id: commerce1_tax_type
- label: Commerce 1 tax types
- migration_tags:
- - Drupal 7
- - Commerce
- - Configuration
- source:
- plugin: commerce1_tax_type
- constants:
- plugin: custom
- process:
- # Set to 30 characters to allow space for deduping.
- id:
- -
- plugin: machine_name
- source: name
- -
- plugin: make_unique_entity_field
- entity_type: commerce_tax_type
- field: id
- length: 30
- label: name
- 'plugin': constants/plugin
- 'configuration/rates/0/id': '@id'
- 'configuration/rates/0/label': name
- 'configuration/rates/0/amount': rate
- # The source tax information does not specify the country use the variable
- # 'site_default_country' as the territory for all tax types.. This will need
- # to be corrected on the destination site post migration.
- 'configuration/territories/0/country_code':
- plugin: default_value
- source: default_country
- default_value: US
- destination:
- plugin: entity:commerce_tax_type
- destination_module: commerce_tax