Tags/topics: 
3
Answers
Vote up!
0
Vote down!

Adding field attributes to product does not display in product display node

I did follow the steps written in http://www.drupalcommerce.org/faq/product-attributes

I have two fields - field_size and field_color. Although I create a product that has sizes and colors to it for attribute selection, it still doesn't display in the product display node although I've "Enable this field to function as an attribute field on Add to Cart forms.". As for product display node display settings, I've tried tick and untick "Show attribute widgets even if the Add to Cart form only represents one product." which doesn't work as well. It only shows the select box to select different products referenced to it rather than attributes.

Am I missing something here?

Screenshots here.

Asked by: jonloh
on November 8, 2012

3 Answers

Vote up!
2
Vote down!

From your screenshots, it looks to me like the issue is you've specified the field can have "Unlimited" values. For a field to function properly as an attribute field, you may only use 1 value, with the idea being that Drupal Commerce requires you to define each potential variation (i.e. each combination of attributes) uniquely with its own SKU. Some of the product attribute documentation / videos on this site should help you sort that out.

Ryan Szrama
Answer by: Ryan Szrama
Posted: Nov 9, 2012
Vote up!
0
Vote down!

Ah okay, then that sorts it out then. It's fine with a single value. Thanks!

Answer by: Anonymous (not verified)
Posted: Nov 9, 2012
Vote up!
0
Vote down!

I have a similar question. I have a product (yoga class) whose variations names are the specific class sessions, for example, here are two variation's titles:

  • Mondays, 9-11, Sept 1 - Sept 30
  • Tuesdays, 9-11:30, Sept 1 - Sept 30

For an anonymous viewer looking at the product page, they see a dropdown where they can choose which variation they want, showing the above title text. That works great. However, when there is only one variation, no title text shows and yet I do have the option for showing 'Show attribute widgets even if the Add to Cart form only represents one product.' checked.

My question is, if a variation has a field set to allow unlimited values, does that prevent the 'Show attribute widgets even if the Add to Cart form only represents one product.' from working? Thanks.

Answer by: rajmataj
Posted: Nov 1, 2013

Comments

Still looking for a working solution to showing the 'Variation title' when only one variation of a product exists. I have gone to /admin/structure/types/manage/[my-product-type]/display and checked 'Show attribute widgets even if the Add to Cart form only represents one product.' but it seems to have no effect.

I would appreciate any help on this as it's been an issue on a client project for months now.

- rajmataj on January 18, 2014