0

I have 12 types of products that have 4 similar property fields, for example: weight, force, collar size, noise level. There are many other different fields for each of the 6 types.

Is there a way to set up Drupal Commerce variation types so 'weight' for example is the same fieldname on all these products types?

I'd like to do this so that a faceted search can allow customers to search for weights or collar sizes, etc, across all product types.

Or any other ideas on how to structure this? (using Drupal 7 and Drupal Kickstart 2)

1

Assuming you are asking about Drupal 7, the answer is yes. You can share base field types across product bundles. Each bundle will have it's own instance of the field, but the data will be stored in the same underlying storage system.

You can add them by choosing from the list of fields under "Add existing field" on the field editing screen:

enter image description here

| improve this answer | |
  • how do I do this? when I add a field to a product variation type, it's not available in a new product variation type and won't let me duplicate the field name. for example: my 'hydraulic-drill' variation type has field_collar_size, when I add new 'rock-drill' variation type I can't use the same field. thanks – troseman May 3 '16 at 4:30
  • The field should be showing up in the "Add existing field" dropdown. If they are not, then perhaps you need to trying clearing caches... if that doesn't work more info would be necessary. – nvahalik May 3 '16 at 11:29
  • omg, that's embarrassing. yes, I see it now, can't imagine how I missed it before. thanks! – troseman May 3 '16 at 13:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.