I had some trouble configuring the Ubercart sub-product module (http://drupal.org/project/uc_subproduct), and decided to post a description of what ultimately worked for me. It's a great module once you get the hang of it.

1. At admin/content/types, configure the content type(s) for the products that will be your sub-products. (You can use either the standard Ubercart “products” content type, or a new product class that you create at admin/store/products/classes.) If you need to add additional CCK fields, add them under the “manage fields” tab. Set your field display options under the “display fields” tab. DO NOT add a node reference field to this content type. DO NOT check the Ubercart boxes under “submission form settings.” Set up the content type as you would for any product, without worrying about the sub-product module.

2. At node/add/[sub-product content type], create your various sub-products as you would create any other ubercart product.

3. Create a new content type for your master product at admin/content/types. NOTE: The new master product content type should be a standard node, not an Ubercart product, even though it is referred to as a “master product.” This node is essentially a carrier for a table that lists the sub-products.

4. Under “submission form settings” for the master product type, check the box for “setup display fields for UC sub-product” and “treat this node type as an Ubercart product.”

5. Using the “manage fields” tab for the master product, add a node reference field to your master product. Select the “check boxes/radio buttons” widget type, check the “required” box, and set the permissible number of values. Check the node type(s) that you will refer to.

6. Using the “display fields” tab for the master product, set the display type for your node reference field to “UC sub-product add to cart form.” Make this setting on both the “basic” tab and the “UC sub product” tab.

7. At node/add/[master product content type], create a master product. You will find a CCK node reference field (check boxes) for your sub-products. Check the boxes for the nodes (products) that you want to include in your sub-product table. You will also find a section for “sub product display.” Add and arrange the product fields that you want to display in your table.

8. Save your new master product. It should display a table with your sub-products and either an “add to cart” link next to each one, or (if you have installed a template override in your template.php file as mentioned elsewhere) one “add to cart” link at the bottom.

Comments

Funksmaname’s picture

"if you have installed a template override in your template.php file as mentioned elsewhere"
where? I can't find it... thanks in advance!