Complex Product Options and Attributes

I have been reading the suggestions on this forum, but I haven't been able to find anything that will work. Your help will this will be GREATLY appreciated.

The store I am working on sells computers. There are about 15 products and each product has several attributes. One of these products has 13 different attributes. For each attribute, there are between 2 and 6 options. Some of these attributes and options are used by multiple products (ex. operating system) and some are only used on a single product.

Price is not an issue. The contents of the cart will be sent to the site admin who will manually create a quote for the potential customer.

I don't need a separate product for each possible configuration. I also don't need a different images. Basically, nothing on the product page will change when the user selects an option

Here is what I need...

  1. A product display with radio buttons for the options
  2. The value of these options sent to the cart
  3. A way for the admin to easily add and update products

Thanks for your help!!

Posted: Sep 24, 2011


rfay Randy Fay on September 24, 2011

I think you want a custom line item type, and the custom line item type will have the fields you suggest, instead of the product having them. Then the order will have all the information needed to configure the item.

This does currently require custom code.

See [the manual page](http://www.drupalcommerce.org/specification/info-hooks/line-item) and [this comment](http://www.drupalcommerce.org/node/810#comment-1841)

Edit: There is also now an line item example showing how to do this in [Commerce Examples](http://drupal.org/project/commerce_examples) and there is a new project called [Commerce Custom Line Items](http://drupal.org/project/commerce_custom_line_items) that provides a web UI for creating new line item types.

jess on September 25, 2011

The whole line item thing is really confusing to me. I already see an area in my store configuration for "Line Item Types". There is also a field type of "Line Item Reference".

Where would I add the code in these examples?

How does this all work to add a set of radio buttons to the product page that the customer sees?

Sorry, I am really new to Drupal Commerce. I currently have the store set up in Ubercart, which works perfectly for the product options, but I need to be able to control the cart page with Views.