Vote up!
Vote down!

Can I use the product title alongside attribute options on the Add to Cart form?

When I add color and size to my products as explained here: http://www.drupalcommerce.org/faq/product-attributes
I can get indeed color and size as product selectors.

But I would like to be able to use color, size BUT still also be able to use a dropdown list of referenced products.
Is it possible to use both? Now when I add Color or Size as

Enable this field to function as an attribute field on Add to Cart forms

The referenced product dropdown is gone!
Can I have both on one add to cart form please?

Asked by: Summit
on June 6, 2013

1 Answer

Vote up!
Vote down!

The way attribute fields work on the Add to Cart form, it's one or the other. It can either be built to list out all the individual products by title or it can be built to use attribute fields to point to a single product in the group of products. The only time you'd see a product title select list when using attributes is if more than one product in the Add to Cart form used the same combination of attribute options.

You have two basic options:

  1. Keep the fields on your products but don't make them function as attribute fields on Add to Cart forms. Include in the product title whatever the attributes are set to for that product. This will result in a single select list of product titles that include attributes with no code but more manual title setting.
  2. Alter either form, using the attribute fields or not, to add he missing information via code.
Ryan Szrama
Answer by: Ryan Szrama
Posted: Jun 6, 2013


Is it possible then to have the product as the first thing you select followed by any available attribute options as I can't seem to find a way to do this as the attributes are always first

- dottodotdesign on October 27, 2013