Index: uc_views_bulk_operations.module
===================================================================
--- uc_views_bulk_operations.module	(revision 1)
+++ uc_views_bulk_operations.module	(working copy)
@@ -114,4 +114,36 @@
   }
 }
 
+/**
+ * Implementation of hook_node_operations().
+ *
+ * Adds a mass node operations which can be used with views_bulk_operations.
+ *
+ * @return array
+ *    The array defining the new operation.
+ */
+function uc_views_bulk_operations_node_operations() {
+  return array(
+    'add' => array(
+      'label' => t('Add to cart'),
+      'callback' => 'uc_views_bulk_operations_add_cart',
+      ),
+    );
+}
+
+/**
+ * Callback function for the new bulk operation
+ *
+ * Adds each item to the cart, if an item is already in the cart, its qunatity will be updated
+ *
+ * @param $nodes
+ *    An array containing the nids of every selected node
+ * @param $view
+ *    The full view object
+ */
+function uc_views_bulk_operations_add_cart($nodes, $view) {
+  foreach($nodes as $id)
+    uc_cart_add_item($id);
+}
+
 ?>
\ No newline at end of file
