Defining a new product type

  Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic! Mail us feedback on this topic!  

1. Go to Site Manager -> Development -> Document Types.

 

ecommerceguide_clip0053

 

2. Click New Document Type. ecommerceguide_clip0054

 

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.

 

ecommerceguide_clip0055

 

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 ecommerceguide_clip0056 and enter:

 

 -   Attribute name: TVName

 -   Attribute size: 100

 -   Field caption: Product name

 

From the Field type drop-down list, choose Textbox and click Ok.

 

ecommerceguide_clip0057

 

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.

 

ecommerceguide_clip0058

 

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.

 

ecommerceguide_clip0059

 

8. In the Step 4, choose TVName in the Document name source drop-down list. Click Next.

 

ecommerceguide_clip0060

 

9. In the Step 5, click the Add document types button and select the Page(menu item) document type. Click Next.

 

ecommerceguide_clip0061

 

10. Now make sure that you have assigned the document type to the Ecommerce site and click Next.

 

ecommerceguide_clip0062

 

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.

 

ecommerceguide_clip0066

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