shopify_taxonomy_term.yml in Commerce Migrate 8.2
Same filename and directory in other branches
modules/shopify/migrations/shopify_taxonomy_term.yml
File
modules/shopify/migrations/shopify_taxonomy_term.ymlView source
- # This migration uses a source CSV file created using the Shopify product
- # export.
- id: shopify_taxonomy_term
- label: Migrate Shopify category to taxonomy terms.
- migration_group: commerce_migrate_shopify
- migration_tags:
- - Shopify
- - Content
- source:
- # Uses a custom source plugin that handles a single column of the source CSV
- # where each value is a comma separated list of items.
- plugin: commerce_migrate_csvcell
- # Change the path and filename to match your source CSV file.
- path: 'public://import/shopify-products_export_test.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.
- ids: [name]
- constants:
- vocabulary: tags
- process:
- vid: constants/vocabulary
- # Skip this row if name is empty or term already exists for this term.
- exists:
- -
- plugin: skip_on_empty
- source: name
- method: row
- -
- plugin: entity_lookup
- value_key: name
- bundle_key: vid
- bundle: tags
- entity_type: taxonomy_term
- -
- plugin: callback
- callable: is_null
- -
- plugin: skip_on_empty
- method: row
- name: name
- parent:
- plugin: default_value
- default_value: 0
- weight:
- plugin: default_value
- default_value: 0
- destination:
- plugin: entity:taxonomy_term