ubercart 2 views - filter by order total weight I use Ubercart 2 with Ubercart Views. I'd like to filter orders based on total weight. 

It's possible to add total weight as a field, however it is not possible to add this field as a filter. I tried Views PHP Filter using $row-&gt;weight but this filter is not picked up (it filters $row-&gt;title ok). How can I filter by total weight?
My solution was to add custom php filter and add:

$ord_weight = db_result(db_query("SELECT SUM(qty * weight) FROM {uc_order_products} WHERE order_id = '$row-&gt;order_id'"));