Project

General

Profile

Product custom fields without stock control » History » Version 1

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

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