Restricting view access to a line Item field based on role
The hook method is a good one but you'll need a different hook.

The order page uses a view of line items, not a node display, so you should use a views hook.

I would try either hook_views_pre_render or hook_views_pre_view.

Use dpm($view) (needs devel module) to inspect the view and then modify it however you wish.

To figure out that it was using a view I went to the page, inspected the element in my browser and followed the chain up until I found either a form or a view:





Additional information:


You will definitely need to put an if statement around your code.  Dig through the dpm results for a view id or some other identifier and do something like:

If ([address of view id] != [view id you want]){
  return;
}

To make the column disappear you'll need to unset the field itself, not just the value.  Look in $view somewhere other than -&gt;result.  Sorry, without the dpm output in front of me I can't be more specific than that.