Project

General

Profile

Product custom fields without stock control » History » Version 10

Valérie Isaksen, 10/21/2011 03:23 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 10 Valérie Isaksen
2. Select the Custom Field Type: String, Integer, Boolean, Date, Time, Image
22
3. and fill the Title, Description, Default, Tooltip. 
23
4. Set the parameter Cart Attribute to "No"
24
5. Save your custom field
25
6. Go in the Products > Products, and click on the product you whish to add this custom field
26
7. 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.
27
8. Save your product
28 1 Valérie Isaksen
29
Go on the front end,  you will see the custom field displayed in your product details.
30
31
32
33 7 Valérie Isaksen
h2. Custom Field with Cart Attribute
34 1 Valérie Isaksen
35 8 Valérie Isaksen
Custom fields with no Cart Attribute are the same as the attribute list in VM1.
36
37 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.
38 1 Valérie Isaksen
39
How to do it?
40
1. Go in Products > Custom Fields, and click on the "New" button
41
2. Select the Custom Field Type, and fill the Title, Description, Default, Tooltip. 
42
3. Set the parameter Cart Attribute to "Yes"
43
4. Save your custom field
44
5. Go in the Products > Products, and click on the product you whish to add this custom field
45
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.
46
7. Save your product
47
48
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.
49
50
51
52 7 Valérie Isaksen
h2. How to group a set of Custom Fields?
53 1 Valérie Isaksen
54 7 Valérie Isaksen
You can group together a set of Custom Fields.
55 1 Valérie Isaksen
56
How to do it?
57
1. Go in Products > Custom Fields, and click on the "New" button
58
2. Select the Custom Field Type select the option "Parent", and fill in the other parameters
59
For each custom field you want to group:
60
1. Go in the desired Custom field
61
2. In the field Parent, select the parent you just create
62
For each product, you want to add this set of custom fields:
63 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.
64
2. Save your product
65 1 Valérie Isaksen
66 7 Valérie Isaksen
h2. How to reorder the Custom Fields?
67 1 Valérie Isaksen
68 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.
69 1 Valérie Isaksen
70
71
72
73
74
h2. Create your custom fields
75
76
> *Click the link*
77
!/attachments/325/Virtuemart-2---Administration_panel-customFields.png!
78
79
> *Add new*
80
!http://dev.virtuemart.net/attachments/326/Virtuemart-2---Administration_button-new.png!
81
82
> *Settings descriptions*
83
!http://dev.virtuemart.net/attachments/327/Virtuemart-2---Administration-customfields-EDIT.png!
84
85
h2. Add customfields to your product
86
87
> Go to product list and select a product
88
!http://dev.virtuemart.net/attachments/328/Virtuemart-2---Administration_panel-products.png!