This seems useful, however I'm having problems with this code - I put it in after
$product = node_load($item->nid);
$item->cost = $product->cost;
$item->price = $product->sell_price;
$item->weight = $product->weight;but just get a white screen - I think it's $global user; causing the problem so I took it out but then I get the error 'warning: in_array(): Wrong datatype for second argument. Did I put it in the wrong place? (sorry don't have line numbers in my text editor).
I'm also looking to do a similar thing for attributes (using attribute cost instead of sell price for certain role), so any help would be appreciated!
Thanks
John
