Last updated August 12, 2011. Created by Scott J on February 5, 2011.
Edited by NonProfit. Log in to edit this page.
If your needs are simple, the default product type called Product that is installed for you, may be all that you require. However, if you wish to sell products with different attributes, such as sizes or colors, then you may need to create different product types. Navigate to Add product type (Store > Products > Product type (tab) > Add product type, or http://example.com/admin/commerce/products/types/add) and enter a name such as "T-shirt" or "Coffee Table", then click Save and add fields.
Manage Fields
Next we need to add fields to our new product type to represent the attributes of our products. You should be on the Manage Fields tab of your product type (Store > Products > Product type > Add product type > Manage Fields Tab, or http://example.com/admin/commerce/products/types/[YourProductType]/fields).
You will see that some default fields have already been added for you:
- Product SKU
- Title
- Price (if Price module is enabled)
- Status
Add new fields as needed, for example:
- Image
- Color
- Size
Manage Display
By clicking the Manage Display tab (Store > Products > Product type > Add product type > Manage Display Tab > Default Sub Tab, or http://example.com/admin/commerce/products/types/[YourProductType]/display) we can change the way the fields for our product type will be displayed. You can use the "Custom Display Settings" to enable various custom display types. This allows you to define custom displays for nodes, teasers, line items (cart/checkout), and admin pages.
Comments
may i know what type of field
may i know what type of field i should use for Color and Size?
You could want put them in
You could want put them in two distinct taxonomy vocabularies, then use Term Reference fields or Entity Reference field.
More easily, use a Text list with a Select widget.
Giovanni Perdicaro