magento2_category_term.yml in Commerce Migrate 8.2
Same filename and directory in other branches
modules/magento/migrations/magento2_category_term.yml
File
modules/magento/migrations/magento2_category_term.ymlView source
- id: magento2_category_term
- label: Migrate terms
- migration_group: commerce_migrate_magento2
- migration_tags:
- - Magento 2
- - Content
- source:
- # Uses a custom source plugin, based on the CSV source plugin in
- # migrate_source_csv, that will build an array of product variation ids as
- # well as trim the input from the source CSV.
- plugin: magento2_category_term_csv
- # Change the path and filename to match your source CSV file.
- path: 'public://import/magento2-catalog_product_20180326_013553.csv'
- # Change the enclosure character to suit your source CVS file.
- enclosure: "\""
- # Change the number of header rows to suit your source CVS file.
- header_offset: 0
- # The key field for this migration. List many column names as needed to create
- # a unique key for your migration. These keys are also used when a
- # migration_lookup process is needed with this migration.
- ids: [vocabulary, name]
- process:
- vid:
- plugin: migration_lookup
- migration: magento2_category
- source: vocabulary
- parent_id:
- -
- plugin: skip_on_empty
- method: process
- source: parent
- -
- plugin: migration_lookup
- migration: magento2_category_term
- source:
- - vocabulary
- - parent
- parent:
- plugin: default_value
- default_value: 0
- source: '@parent_id'
- name: name
- 'description/value': description
- 'description/format': format
- weight:
- plugin: default_value
- default_value: 0
- source: weight
- destination:
- plugin: entity:taxonomy_term
- migration_dependencies:
- required:
- - magento2_category