1. Go to Site Manager -> Development -> Document Types.
2. Click New Document Type.
3.You have been redirected the New document type wizard.
In the Step 1, enter:
- Document type display name: Plasma TV
- Document type code name: CustomProduct (namespace), television (document type)
Click Next.
4. In the Step 2, leave the default values and click Next again.
5. In the Step 3, you are asked to define attributes for the new document type. Click the New Attribute button and enter:
- Attribute name: TVName
- Attribute size: 100
- Field caption: Product name
From the Field type drop-down list, choose Textbox and click Ok.
6. Click New Attribute again. Enter:
- Attribute name: TVScreenType
- Attribute size: 100
- Field caption: Screen type
From the Field type drop-down list, choose Textbox and click Ok.
7. Now click New Attribute again and enter information for the last attribute:
- Attribute name: TVScreenSize
- Attribute type: Integer number
- Field caption: Screen size in inches
From the Field type drop-down list, choose Textbox and click Ok.
8. In the Step 4, choose TVName in the Document name source drop-down list. Click Next.
9. In the Step 5, click the Add document types button and select the Page(menu item) document type. Click Next.
10. Now make sure that you have assigned the document type to the Ecommerce site and click Next.
11. Click Finish. You will be redirected to the General tab of the product type editing interface. Enable the Document is product type option and click OK.
12. Now go to CMS Desk -> Products -> Plasma TV and click New at the document action toolbar. You'll see that you can choose Plasma TV as the new document type.
|
Adding attributes
This chapters explains how to add an attribute to specific document type. (e.g. product-camera, product - cell phones).
For adding attribute common to all products, please refer to the Adding product custom fields chapter. |
|
Changing document type icon
The default icon is created with the new document type. Should you want to replace this icon with your own, go to <your web project folder>\App_Themes\Default\Images\ CMSDesk\Icons\ and find the file named <namespace>_<your new document type>.gif (in our example, this is going to be CustomProduct_television.gif). All you have to do is replace this file with the image file of your new icon. Please note that the new file has to be named the same as the one being replaced. |
Page url: http://devnet.kentico.com/docs/ecommerceguide/index.html?defining_a_new_product_type.htm