Project

General

Profile

Product custom fields without stock control » History » Version 2

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

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