RO CSVI

VirtueMart Media Items import

A template can be created by following these steps:

  1. Go to Components -> CSVI Pro -> Templates
  2. Click New
  3. Give the template a name, say for example VirtueMart Media import
  4. Set Action to Import
  5. Set Component to VirtueMart
  6. Set Operation to Media
  7. Click Next: Select Source
  8. Source is set default to Load from your computer. No need for change.
  9. Click Next: Select options
  10. The default values are OK, change if needed.
  11. Click Next: Select fields
  12. Nothing needed here as we set to Use column headers as configuration in step 10.
  13. Click Next: Finalize
  14. All done here
  15. Click Close to return to the list of templates or Edit if you want to fine-tune the template further.

VirtueMart Media Items import create template

  1. Go to Components -> CSVI Pro -> Templates
  2. Click on Template fields
  3. In the Search Tools select your template
  4. Click on New to add a single field or click on Quick Add to add multiple fields.

Quick Add

The Quick Add Option allows you to quickly add multiple fields to a template. It is not possible to set any settings per field here but that can be done after the fields have been added to the template.

VirtueMart mediaitems import create template fields

  1. Go to Components -> CSVI Pro -> Import
  2. Select the template created earlier with name VirtueMart media import
  3. Click Select file
  4. Select the file to import
  5. Click Preview
  6. You now see a preview of the file as to how CSVI sees the file
  7. Click Start import
  8. The import is run
  9. The Log details page will be shown with information regarding the import if the Enable logging is enabled in the template

VirtueMart mediaitems run import

"product_sku";"file_url";"file_title";"file_meta";"file_description"
"H01";"hammer.jpg";"Hammer";"hammer wood";"A wooden hammer"
"H02";"hammer2.jpg";"Hammer Deux";"hammer plastic";"A plastic hammer"

Multiple images

"product_sku";"file_url";"file_title";"file_meta";"file_description"
"H01";"hammer1.jpg";"Hammer left";"hammer wood";"A wooden hammer from the left"
"H01";"hammer2.jpg";"Hammer right";"hammer wood";"A wooden hammer from the right"
"H01";"hammer3.jpg";"Hammer top";"hammer wood";"A wooden hammer from the top"

Product documents

"product_sku";"file_url";"file_title";"file_description"
"H01";"hammer1.pdf";"Hammer document";"A technical description of the wooden hammer"

Delete media

"file_url";"media_delete"
"images/stories/virtuemart/product/hammer1.jpg";"Y"

vm_media_items_import.csv

Related Articles