A RolandD Cyber Produksi Product
Product types are probably the most powerful, yet least used option of VirtueMart. Product types appear on the product details page. This is how they show up:
Product types consist of 3 different pieces of information. These pieces are:
Product types can be seen as groups of information. Similar products have similar information. The picture shows the product details of a body paint kit. All body paint kits can have 1 or more of these parameters. We want to show this information to the customer in a simple overview that is where product types step in.
The table as seen in the picture can be divided up into 3 sections. Each section matches a piece of product type information. The sections we have are the red top bar, a left column and a right column. Replacing the actual data with the product type pieces of information gives this table:
| Product type name | |
|---|---|
| Product type parameter | parameter value |
| Product type parameter | parameter value |
| Product type parameter | parameter value |
| Product type parameter | parameter value |
| Product type parameter | parameter value |
| Product type parameter | parameter value |
| Product type parameter | parameter value |
This is the concept of product types.
Importing product types with CSV Improved involves a 3-step procedure:
In the below examples all possible fields are used. This is not mandatory. Only the product type name is needed by CSV Improved to know where the data belongs to.
Take another look at the table above. We see that the product type name is on the top of the table, so this needs to be imported first. The product type names file will look like this:
| product_type_name | product_type_description | product_type_publish | product_type_browsepage | product_type_flypage |
|---|---|---|---|---|
| Details | Details of this product | Y |
The product type parameters are shown on the left side of the table, so they are imported second. The file to import looks like this:
| product_type_name | product_type_parameter_name | product_type_parameter_label | product_type_parameter_description | product_type_parameter_list_order | product_type_parameter_type | product_type_parameter_values | product_type_parameter_multiselect | product_type_parameter_default | product_type_parameter_unit |
|---|---|---|---|---|---|---|---|---|---|
| Details | color | Color | Color of this product | 1 | T | ||||
| Details | packaging | Packaging | How the product is packaged | 2 | T | ||||
| Details | material | Material | Material this product is made of | 3 | T | ||||
| Details | texture | Texture | Texture of this product | 4 | T | ||||
| Details | fragrance | Fragrance | Fragrance of this product | 5 | T | ||||
| Details | flavor | Flavor | Flavor of this product | 6 | T | ||||
| Details | herbal | Herbal | Made of herbal ingredients | 7 | T |
The product_type_parameter_name cannot have spaces as this name is going to be used to create database columns. CSV Improved will convert any spaces to underscores.
Now that the top and left side of the table have been imported we still need to do the right side of the table, the product type parameters. The file to import looks like this:
| product_sku | product_type_name | color | packaging | material | texture | fragrance | flavor | herbal |
|---|---|---|---|---|---|---|---|---|
| 1234 | Details | Tube | Assorted | Assorted | ||||
| 5678 | Details | Jar | Chocolate Marshmallow | Chocolate Marshmallow |
The first two column headers are fields needed by CSV Improved as it tells the system what product type name the parameter values are for and about which product you are talking. The rest of the field names are the fields found in the left column of the table.
A separate file is required for each product type name because the field names are linked to the product type