« Previous - Version 9/13 (diff) - Next » - Current version
Valérie Isaksen, 10/21/2011 02:29 pm


Hints for the use of the product customfields

There are 2 types of custom fields:
- custom fields with no stock control
- custom fields with stock control

Custom fields with no stock control

Custom fields with no stock control can be either with no Cart Attribute, either with Cart Attribute.

Custom fields with no Cart Attribute:
(Same as product types in VM1)
When created with No Cart Attribute option, custom fields can be used to give an identical description of a set of products. For example for books, you may wish to always give the following description:

Reading level: Ages 9-12
Hardcover: 224 pages
Publisher: Amulet Books (November 15, 2011)
Language: English
ISBN-10: 1419702238
ISBN-13: 978-1419702235

How to do it?
1. Go in Products > Custom Fields, and click on the "New" button
2. Select the Custom Field Type, and fill the Title, Description, Default, Tooltip.
3. Set the parameter Cart Attribute to "No"
4. Save your custom field
5. Go in the Products > Products, and click on the product you whish to add this custom field
6. Go on the Custom Field tab, and in the Custom Field Type area, select the custom Field you just created. The custom field is automatically added; Fill in the value.
7. Save your product

Go on the front end, you will see the custom field displayed in your product details.

Custom field with Cart Attribute
Custom field with Cart Attribute, allows you to add some options to a product, and that can modify the product price. For example, you may wish to sell a book , or the downladable version of it. ANd the price is different in both case.

How to do it?
1. Go in Products > Custom Fields, and click on the "New" button
2. Select the Custom Field Type, and fill the Title, Description, Default, Tooltip.
3. Set the parameter Cart Attribute to "Yes"
4. Save your custom field
5. Go in the Products > Products, and click on the product you whish to add this custom field
6. Go on the Custom Field tab, and in the Custom Field Type area, select the custom Field you just created. The custom field is automatically added; A colum Price has been added. You can specify 0 if the option is free, or the amount of this option.
7. Save your product

Go on the front end, you will see those custom fields above the "Add to Cart" button. When the product is added to the cart, the selected options are in the cart too.

How to group a set of custom field?
You can group together a set of custom fields.
How to do it?
1. Go in Products > Custom Fields, and click on the "New" button
2. Select the Custom Field Type select the option "Parent", and fill in the other parameters
For each custom field you want to group:
1. Go in the desired Custom field
2. In the field Parent, select the parent you just create
For each product, you want to add this set of custom fields:
6. Go on the Custom Field tab, and in the Custom Field Type area, select the custom Field Parent you just created. The set of custom fields will be automatically added.
7. Save your product

How to reorder the custom fields?
If you have added some custom fields to your product, and you want to reorder them, click on the custom field, drag it and drop it at the corrrect place.

Create your custom fields

Click the link

Add new

Settings descriptions

Add customfields to your product

Go to product list and select a product

Virtuemart-2---Administration_panel-customFields.png - Acces to customfields settings (8.06 KB) Patrick Kohl, 10/08/2011 11:40 pm

Virtuemart-2---Administration_button-new.png - 1st Step add new custom fields (6.94 KB) Patrick Kohl, 10/08/2011 11:40 pm

Virtuemart-2---Administration-customfields-EDIT.png - Custom fields setting explain (46.1 KB) Patrick Kohl, 10/08/2011 11:40 pm

Virtuemart-2---Administration_panel-products.png - Acces to product (7.84 KB) Patrick Kohl, 10/09/2011 12:26 am