nice one

phethean's picture
Offline
Joined: 08/07/2008
Juice: 10
nice one

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

Different role prices. Do you think is a good solution? By: enkara (58 replies) Thu, 07/31/2008 - 14:50