1

Assume I have 2 product attributes (using the Drupal Commerce module):

  1. Background color (white, black, green, blue, yellow).
  2. Surface (glossy or matte).

And assume that surface "glossy" can be only selected in combination with background color "white" or "black".

How should I configure this conbination of attributes?

2

Required steps

Step 1

Create 2 taxonomies:

  1. Background color, with terms white, black, green, blue, yellow
  2. Surface, with terms glossy or matte.

Step 2

For each prod type, add field "Background color", which is a field "term referenace" (and refer to the Background color taxonomy).

Attentionn: make sure to check the option "attribute field settings" (enables this field to function as an attribute field on the add-to-cart-form).

Then add a similar term reference field "Surface".

Step 3

Use store / products / add product to add individual products, with a specific SKU, and for which you pick the right values for each of both taxonomies.

So for "Matte surface", you should create 5 individual products (one for each background color). But for "Glossy surface", you only create 2 individual products (1 with a white background color, and 1 with a black background color)

Video tutorials

For a more detailed video tutorial of the steps described above, refer to Drupal Commerce - Pruduct Attributes (16:13). Before doing so, you may want to first view these related videos:

By only reviewing/studying these 3 videos (total time = about 37 mins), you'll have a very good foundation to get started with the fundamentals of Drupal Commerce.

Commerce Backoffice

Managing products (and orders) can be confusing. However, the Commerce Backoffice module helps with that. For more details about that module, refer to my answer to the question about Correct way for Attributes in Commerce

| improve this answer | |
  • Perfect as always... Yeah, I already watched these views a couple of times, but you know, something some tiny bit of explanation is required to get it 100%. Thank you! – user126902 Jul 19 '15 at 14:04
  • 1
    Merci (again), aka "Thank you". Just so you know: nobody is perfect, and my name is not "nobody" ... Anyway, let e go find your "next question" to work on ... may I? – Pierre.Vriens Jul 19 '15 at 14:09
  • 1
    @Pierre.Vriens Always wanted to tell you. I admire your willingness to help :) Thank you for all your answers! – AjitS Aug 8 '16 at 18:31
  • 1
    @AjitS ... euh ... not sure what to reply to your comment, something like "merci for the kudos"? Or am I still missing "something"? – Pierre.Vriens Aug 8 '16 at 18:34
  • @Pierre.Vriens hah! That should do it. – AjitS Aug 8 '16 at 18:36

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.