You are here

magento2_category_term.yml in Commerce Migrate 3.0.x

modules/magento/migrations/magento2_category_term.yml

File

modules/magento/migrations/magento2_category_term.yml
View source
  1. id: magento2_category_term
  2. label: Migrate terms
  3. migration_group: commerce_migrate_magento2
  4. migration_tags:
  5. - Magento 2
  6. - Content
  7. source:
  8. # Uses a custom source plugin, based on the CSV source plugin in
  9. # migrate_source_csv, that will build an array of product variation ids as
  10. # well as trim the input from the source CSV.
  11. plugin: magento2_category_term_csv
  12. # Change the path and filename to match your source CSV file.
  13. path: 'public://import/magento2-catalog_product_20180326_013553.csv'
  14. # Change the enclosure character to suit your source CVS file.
  15. enclosure: "\""
  16. # Change the number of header rows to suit your source CVS file.
  17. header_offset: 0
  18. # The key field for this migration. List many column names as needed to create
  19. # a unique key for your migration. These keys are also used when a
  20. # migration_lookup process is needed with this migration.
  21. ids: [vocabulary, name]
  22. process:
  23. vid:
  24. plugin: migration_lookup
  25. migration: magento2_category
  26. source: vocabulary
  27. parent_id:
  28. -
  29. plugin: skip_on_empty
  30. method: process
  31. source: parent
  32. -
  33. plugin: migration_lookup
  34. migration: magento2_category_term
  35. source:
  36. - vocabulary
  37. - parent
  38. parent:
  39. plugin: default_value
  40. default_value: 0
  41. source: '@parent_id'
  42. name: name
  43. 'description/value': description
  44. 'description/format': format
  45. weight:
  46. plugin: default_value
  47. default_value: 0
  48. source: weight
  49. destination:
  50. plugin: entity:taxonomy_term
  51. migration_dependencies:
  52. required:
  53. - magento2_category