Project

General

Profile

Product custom fields without stock control » History » Revision 4

Revision 3 (Valérie Isaksen, 10/21/2011 02:51 PM) → Revision 4/10 (Valérie Isaksen, 10/21/2011 02:52 PM)

h1. Product custom fields without stock control 


 Custom fields without stock control can be either with no Cart Attribute, or either with Cart Attribute. 

 h2. Custom fields with no Cart Attribute: 

 (Same as product types in VM1) 
 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: 

 Reading level: Ages 9-12 
 Hardcover: 224 pages 
 Publisher: Amulet Books (November 15, 2011) 
 Language: English 
 ISBN-10: 1419702238 
 ISBN-13: 978-1419702235 

 How to do it? 
 1. Go in Products > Custom Fields, and click on the "New" button 
 2. Select the Custom Field Type, and fill the Title, Description, Default, Tooltip.  
 3. Set the parameter Cart Attribute to "No" 
 4. Save your custom field 
 5. Go in the Products > Products, and click on the product you whish to add this custom field 
 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. 
 7. Save your product 

 Go on the front end,    you will see the custom field displayed in your product details. 



 h2. Custom field with Cart Attribute 

 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. 

 How to do it? 
 1. Go in Products > Custom Fields, and click on the "New" button 
 2. Select the Custom Field Type, and fill the Title, Description, Default, Tooltip.  
 3. Set the parameter Cart Attribute to "Yes" 
 4. Save your custom field 
 5. Go in the Products > Products, and click on the product you whish to add this custom field 
 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. 
 7. Save your product 

 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. 



 h2. How to group a set of Custom Field? 

 You can group together a set of custom fields. 

 How to do it? 
 1. Go in Products > Custom Fields, and click on the "New" button 
 2. Select the Custom Field Type select the option "Parent", and fill in the other parameters 
 For each custom field you want to group: 
 1. Go in the desired Custom field 
 2. In the field Parent, select the parent you just create 
 For each product, you want to add this set of custom fields: 
 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. 
 7. Save your product 

 h2. How to reorder the custom fields? 

 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. 





 h2. Create your custom fields 

 > *Click the link* 
 !/attachments/325/Virtuemart-2---Administration_panel-customFields.png! 

 > *Add new* 
 !http://dev.virtuemart.net/attachments/326/Virtuemart-2---Administration_button-new.png! 

 > *Settings descriptions* 
 !http://dev.virtuemart.net/attachments/327/Virtuemart-2---Administration-customfields-EDIT.png! 

 h2. Add customfields to your product 

 > Go to product list and select a product 
 !http://dev.virtuemart.net/attachments/328/Virtuemart-2---Administration_panel-products.png!