You are here

uc6_store.yml in Commerce Migrate 3.0.x

modules/ubercart/migrations/uc6_store.yml

File

modules/ubercart/migrations/uc6_store.yml
View source
  1. # Ubercart 6 Store information.
  2. id: uc6_store
  3. label: Migrate store from Ubercart
  4. migration_tags:
  5. - Drupal 6
  6. - Ubercart
  7. - Content
  8. source:
  9. plugin: uc_store
  10. variables:
  11. - uc_store_name
  12. - uc_store_owner
  13. - uc_currency_code
  14. - uc_store_street1
  15. - uc_store_street2
  16. - uc_store_zone
  17. - uc_store_city
  18. - uc_store_postal_code
  19. - uc_store_country
  20. - uc_store_phone
  21. - uc_store_fax
  22. - uc_store_email
  23. - uc_store_email_include_name
  24. constants:
  25. type: 'online'
  26. process:
  27. # Bundle
  28. type: 'constants/type'
  29. name: uc_store_name
  30. uid:
  31. -
  32. plugin: default_value
  33. default_value: 1
  34. -
  35. plugin: migration_lookup
  36. migration: d6_user
  37. default_currency: uc_currency_code
  38. mail: uc_store_email
  39. # Country code is required. If is it null none of the address fields are saved.
  40. 'address/country_code': country_iso_code_2
  41. 'address/address_line1': uc_store_street1
  42. 'address/address_line2': uc_store_street2
  43. 'address/locality': uc_store_city
  44. 'address/postal_code': uc_store_postal_code
  45. is_default:
  46. -
  47. plugin: default_value
  48. default_value: TRUE
  49. destination:
  50. plugin: entity:commerce_store
  51. destination_module: commerce_store
  52. migration_dependencies:
  53. required:
  54. - d6_user
  55. - uc_currency