? example.patch
Index: uc_product/views/uc_product.views.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/ubercart/uc_product/views/uc_product.views.inc,v
retrieving revision 1.1.2.7
diff -u -p -r1.1.2.7 uc_product.views.inc
--- uc_product/views/uc_product.views.inc	20 Oct 2009 20:58:06 -0000	1.1.2.7
+++ uc_product/views/uc_product.views.inc	27 Jan 2011 18:28:53 -0000
@@ -178,6 +178,84 @@ function uc_product_views_data() {
       'handler' => 'uc_product_handler_field_buyitnow',
     ),
   );
+  
+  $data['uc_products']['length'] = array(
+    'title' => t('Length'),
+    'help' => t('The physical length.'),
+    'field' => array(
+      'additional fields' => array(
+        'field' => 'length_units',
+      ),
+      'handler' => 'views_handler_field_numeric',
+      'click sortable' => TRUE,
+      'float' => TRUE,
+    ),
+    'sort' => array(
+      'handler' => 'views_handler_sort',
+    ),
+    'filter' => array(
+      'handler' => 'views_handler_filter_float',
+    ),
+  );
+  
+  $data['uc_products']['width'] = array(
+    'title' => t('Width'),
+    'help' => t('The physical width.'),
+    'field' => array(
+      'additional fields' => array(
+        'field' => 'length_units',
+      ),
+      //'handler' => 'uc_product_handler_field_weight', //TODO: change handler to another
+      'handler' => 'views_handler_field_numeric',
+      'click sortable' => TRUE,
+      'float' => TRUE,
+    ),
+    'sort' => array(
+      'handler' => 'views_handler_sort',
+    ),
+    'filter' => array(
+      'handler' => 'views_handler_filter_float',
+    ),
+  );
+  $data['uc_products']['height'] = array(
+    'title' => t('Height'),
+    'help' => t('The physical height.'),
+    'field' => array(
+      'additional fields' => array(
+        'field' => 'length_units',
+      ),
+      //'handler' => 'uc_product_handler_field_weight', //TODO: change handler to another
+      'handler' => 'views_handler_field_numeric',
+      'click sortable' => TRUE,
+      'float' => TRUE,
+    ),
+    'sort' => array(
+      'handler' => 'views_handler_sort',
+    ),
+    'filter' => array(
+      'handler' => 'views_handler_filter_float',
+    ),
+  );  
+  
+  $data['uc_products']['pkg_qty'] = array(
+    'title' => t('Package quantity'),
+    'help' => t('package quantity.'),
+    'field' => array(
+      //'additional fields' => array(
+      //  'field' => 'length_units',
+      //),
+      //'handler' => 'uc_product_handler_field_weight', //TODO: change handler to another
+      'handler' => 'views_handler_field_numeric',
+      'click sortable' => TRUE,
+      'float' => FALSE,
+    ),
+    'sort' => array(
+      'handler' => 'views_handler_sort',
+    ),
+    'filter' => array(
+      'handler' => 'views_handler_filter_numeric',
+    ),
+  );
 
   return $data;
 }
