Project

General

Profile

Product custom fields without stock control » History » Version 9

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

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