Project

General

Profile

Product custom fields without stock control » History » Version 3

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

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