Create a new product class called "Book". Go to "Administer - Store administration - Products" and click "Manage Product Classes". Enter "book" as the "Class ID" and "Book" as the "Class Name". You may optionally enter a description. Click "Submit" to save the new product class. You should the have something similar to this:
| Class ID | Name | Description |
|---|---|---|
| book | Book | Book |
Next, we will create a vocabulary to organize your book categories/subjects. You could skip this next step since Ubercart already provides an appropriate default called "Catalog". I however decided to create my own. Go to "Administer - Content management" and click "Add Vocabulary".
Enter the vocabulary name "Subject"and an optional description. Make sure you select "Book" under Type. If you decided to use Ubercart's built in vocabulary, be sure to edit it and select "Book" under type. Disable "Hierarchy" and make this vocabulary "Required". Leave "Related terms", "Free tagging", and "Multiple select" unchecked. Click "Submit" to save this vocabulary.
You should have something similar to the following:
| Name | Type | Operations | ||
|---|---|---|---|---|
| Catalog | Product | edit vocabulary | list terms | add terms |
| Subject | Book | edit vocabulary | list terms | add terms |
In our store, the "Author" field will be a node reference because we want to offer the costumer the ability to view some information on the author. So lets create an "Author" content type, go to "Administer - Content management" and click "Add Content Type".
Leave "Body field label" empty and "minimum number of words" set to 0. Type in anything you'd like in "Explanation or submission guidelines". "Default options" should only have "Published" enabled, and comments can be either enabled or disabled. Click "Submit" to create the node type.
Go back and edit the newly created "author" node type, and click "Add field". Create the following additional fields:
Now lets add additional fields to our "Book" product class:
