Hi.

I'm trying to select the order in which my combination fields should be combined. I have color and size, and the created combinations are always "size-color" no matter what I do, but I need "color-size". Changing the field order in the product type field definition page won't help.

I've taken a look to the database and I think that the size field was originally created first (it's internal id is lower than that of field color) and maybe that's why it's always taken first. My guess is that function field_info_instances (https://api.drupal.org/api/drupal/modules!field!field.info.inc/function/...) is being used for retrieving the field instances and it won't use field weights for the order but just retrieve fields as they come out of the database.

I don't know if my diagnose is correct or not, but in any case I don't know how to solve it! Any clue?

Comments

mmeldrem’s picture

I could also use this. I've looked and the field I want first IS first in alphabetical order in list of taxonomy, so it's not that. I've tried moving the field I want first in the list of fields in Manage Fields, and clearing the cache, but that didn't work either. I wonder if it has to do with some sort of field array based on the order the fields were created? I'm just shooting in the dark on that.

This would help me too for a t-shirt website. Unless I can see a way to automate product images, it would be extra useful to have color first in product title/sku because then each color would be grouped, and we could just open the edit pages in new tabs all at once and upload the correct product image, rather than digging through the list being sorted wrongly (with all smalls grouped together, etc.).

+1