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

My entity_load line item does not include product attributes

Hey all,

when i use this loop to show all the line items in my order:

foreach ($order->commerce_line_items[LANGUAGE_NONE] as $key => $line_id) {
// Load line item and add product id to array
$line_items = entity_load('commerce_line_item', $line_id);
}

this will not show the by the user selected product attribute. Like i have an attribute color "Green".

Does anybody know how i can retrieve these attributes (in code)?

Asked by: houseman
on February 7, 2014

1 Answer

Vote up!
0
Vote down!

I doubt you're still looking for an answer, but if you are, please paste the array structure of your line item!

Emmanuel Buckshi
Answer by: Emmanuel Buckshi
Posted: Jun 16, 2015