VirtueMart
VirtueMart Categories export
A template can be created by following these steps:
- Go to Components -> CSVI Pro -> Templates
- Click New
- Give the template a name
- Set Action to Export
- Set Component to VirtueMart
- Set Operation to Category
- Click Next: Select Source
- Destination is set default to Download. No need for change.
- Click Next: Select options
- The default values are OK, change if needed.
- Click Next: Select fields
- Fields must be added otherwise there is nothing for CSVI to export. Click Edit template fields.
- A new window opens with the Template fields page. You can add new fields by clicking New or Quick Add.
- When all fields are added you can close the window
- Click Next: Finalize
- All done here
- Click Close to return to the list of templates or Edit if you want to fine-tune the template further.
- Go to Components -> CSVI Pro -> Templates
- Click on Template fields
- In the Search Tools select your template
- 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.
- Go to Components -> CSVI Pro -> Export
- Select the template created earlier
- Click Export
- The export is run
- The Log details page will be shown with information regarding the export if the Enable logging is enabled in the template
VirtueMart Categories import
A template can be created by following these steps:
- Go to Components -> CSVI Pro -> Templates
- Click New
- Give the template a name, say for example VirtueMart category import
- Set Action to Import
- Set Component to VirtueMart
- Set Operation to Category
- Click Next: Select Source
- Source is set default to Load from your computer. No need for change.
- Click Next: Select options
- The default values are OK, change if needed.
- Click Next: Select fields
- Nothing needed here as we set to Use column headers as configuration in step 10.
- Click Next: Finalize
- All done here
- Click Close to return to the list of templates or Edit if you want to fine-tune the template further.
- Go to Components -> CSVI Pro -> Templates
- Click on Template fields
- In the Search Tools select your template
- 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.
- category_path
- category_description
- published
Examples
"category_path";"category_description";"published"
"shoes/men-shoes";"Category for organising men shoes";"1"
"shoes/women-shoes";"Category for organising women shoes";"1"
Example file
import_virtuemart_category.csv
The import can be run by following these steps:
- Go to Components -> CSVI Pro -> Import
- Select the template created earlier with name VirtueMart category import
- Click Select file
- Select the file to import
- Click Preview
- You now see a preview of the file as to how CSVI sees the file
- Click Start import
- The import is run
- The Log details page will be shown with information regarding the import if the Enable logging is enabled in the template
Product export with custom fields
Export custom values
Requirements
- CSVI 6.0+
- Joomla 3.0+
- VirtueMart 3.0+
Background information
To export custom values the process is the same as all other exports.
Create a export template and select the fields for exporting. Example exporting is explained here with following fields.
- product_sku
- custom_title
- custom_value
- custom_price
- custom_param
More fields
- custom_disabler
- custom_override
- custom_delete
- custom_ordering
Let's have a closer look at the fields.
product_sku
Field to get SKU of a product.
custom_title
Field to get title of the custom field
custom_value
Field to get the value of the custom field.
custom_price
Field to get a price value if the plugin has the value.
custom_param
Field to get parameter values if the plugin has it.
Available as of CSVI Pro 6.5.0
custom_disabler
Field gets value if parent customfield is not used for child product. The values exported will be Y or N.
Available as of CSVI Pro 6.5.0
custom_override
This field has the value if parent customfield value to be overridden for child product. The values exported will be Y or N.
custom_delete
This field has the value if needed to delete custom values assigned to products The values exported will be Y or N.
custom_ordering
This field has the value for ordering custom fields assigned to products The values exported will be Y or N.
An example of single value custom field would look like
product_sku | custom_title | custom_value | custom_price | custom_param | custom_disabler | custom_override |
H01 | Size | 34 | 24 | Y | Y |
Example of multiple values for custom field export would look like
product_sku | custom_title | custom_value | custom_price | custom_param | custom_disabler | custom_override |
H01 | Size~Size~Size | 34~36~38 | 24~26~28 | Y~N~Y | Y~Y~N |
VirtueMart supported operations
In RO CSVI we offer a number of import and export routines to manage your VirtueMart data. This is the complete list of VirtueMart supported operations. The majority of operations are available for both import and export although some are for a specific task so they can only be used for either import or export.
Product Status
VirtueMart | CSVI Import | CSVI Export |
---|---|---|
In Stock | product_in_stock | product_in_stock |
Booked, ordered products | product_ordered | product_ordered |
Low Stock Notification | low_stock_notification | low_stock_notification |
Purchase Quantity Steps | step_order_level | step_order_level |
Minimum Purchase Quantity | min_order_level product_params |
min_order_level product_params |
Maximum Purchase Quantity | max_order_level product_params |
max_order_level product_params |
Availability Date | product_available_date | product_available_date |
Availability | product_availability | product_availability |