Project

General

Profile

Hints for the use of the product customfields » History » Version 10

Valérie Isaksen, 10/21/2011 02:30 PM

1 1 Patrick Kohl
h1. Hints for the use of the product customfields
2
3 8 Valérie Isaksen
4
There are 2 types of custom fields:
5
- custom fields with no stock control
6
- custom fields with stock control
7
8
9 10 Valérie Isaksen
h2. Custom fields with no stock control
10 8 Valérie Isaksen
11
Custom fields with no stock control can be either with no Cart Attribute, either with Cart Attribute.
12 1 Patrick Kohl
13 10 Valérie Isaksen
h3. Custom fields with no Cart Attribute:
14
15 8 Valérie Isaksen
(Same as product types in VM1)
16
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:
17
18
Reading level: Ages 9-12
19
Hardcover: 224 pages
20
Publisher: Amulet Books (November 15, 2011)
21
Language: English
22
ISBN-10: 1419702238
23
ISBN-13: 978-1419702235
24
25
How to do it?
26
1. Go in Products > Custom Fields, and click on the "New" button
27
2. Select the Custom Field Type, and fill the Title, Description, Default, Tooltip. 
28
3. Set the parameter Cart Attribute to "No"
29
4. Save your custom field
30
5. Go in the Products > Products, and click on the product you whish to add this custom field
31
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.
32
7. Save your product
33
34
Go on the front end,  you will see the custom field displayed in your product details.
35 1 Patrick Kohl
36
37 8 Valérie Isaksen
38 10 Valérie Isaksen
h3. Custom field with Cart Attribute
39
40 8 Valérie Isaksen
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.
41
42
How to do it?
43
1. Go in Products > Custom Fields, and click on the "New" button
44
2. Select the Custom Field Type, and fill the Title, Description, Default, Tooltip. 
45
3. Set the parameter Cart Attribute to "Yes"
46
4. Save your custom field
47
5. Go in the Products > Products, and click on the product you whish to add this custom field
48
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.
49
7. Save your product
50
51 1 Patrick Kohl
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.
52
53 8 Valérie Isaksen
54
55 10 Valérie Isaksen
h3. How to group a set of custom field?
56
57 8 Valérie Isaksen
You can group together a set of custom fields. 
58
How to do it?
59
1. Go in Products > Custom Fields, and click on the "New" button
60
2. Select the Custom Field Type select the option "Parent", and fill in the other parameters
61
For each custom field you want to group:
62
1. Go in the desired Custom field
63 1 Patrick Kohl
2. In the field Parent, select the parent you just create
64
For each product, you want to add this set of custom fields:
65 8 Valérie Isaksen
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.
66
7. Save your product
67
68 10 Valérie Isaksen
h3. How to reorder the custom fields?
69
70 8 Valérie Isaksen
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.
71
72
73
74
75
76 1 Patrick Kohl
h2. Create your custom fields
77
78 5 Patrick Kohl
> *Click the link*
79 2 Patrick Kohl
!/attachments/325/Virtuemart-2---Administration_panel-customFields.png!
80 1 Patrick Kohl
81 5 Patrick Kohl
> *Add new*
82 3 Patrick Kohl
!http://dev.virtuemart.net/attachments/326/Virtuemart-2---Administration_button-new.png!
83
84 5 Patrick Kohl
> *Settings descriptions*
85 4 Patrick Kohl
!http://dev.virtuemart.net/attachments/327/Virtuemart-2---Administration-customfields-EDIT.png!
86 1 Patrick Kohl
87
h2. Add customfields to your product
88 6 Patrick Kohl
89 7 Patrick Kohl
> Go to product list and select a product
90 6 Patrick Kohl
!http://dev.virtuemart.net/attachments/328/Virtuemart-2---Administration_panel-products.png!