diff --git a/includes/commerce_product.inline_entity_form.inc b/includes/commerce_product.inline_entity_form.inc index 627818a..ac6871e 100644 --- a/includes/commerce_product.inline_entity_form.inc +++ b/includes/commerce_product.inline_entity_form.inc @@ -358,7 +358,18 @@ class CommerceProductInlineEntityFormController extends EntityInlineEntityFormCo if (!empty($attributes)) { $wrapper = entity_metadata_wrapper('commerce_product', $entity); foreach ($attributes as $field_name => $attribute) { - $attribute_values[] = $wrapper->{$field_name}->label(); + if ($attribute['field']['module'] == 'taxonomy') { + foreach ($entity as $field) { + if (is_array($field) && isset($field['und'][0]['tid'])) { + $attribute_values[] = $field['und'][0]['name']; + } + } + } + else { + if ($label = $wrapper->{$field_name}->label()) { + $attribute_values[] = $label; + } + } } $entity->title .= ' (' . implode(', ', $attribute_values) . ')'; }