Drupal Commerce product in-cart status info in Views
I am not aware of any modules, that will provide the functionality that you described out of the box, but the snippets below will probably get you moving in the right direction.



You'd write a function that gets all product IDs that are in the cart.

/**
 * Return the product_id values for all products in the cart
 *
 * @return
 *  An array of product ids
 */
function CUSTOMMODULE_get_products_in_cart() {
  $cart_product_ids = &amp;drupal_static(__FUNCTION__);

  if (!isset($cart_product_ids)) {
    global $user;
    $cart_product_ids = array();
    $order = commerce_cart_order_load($user-&gt;uid);
    if ($order) {
      $order_wrapper = entity_metadata_wrapper('commerce_order', $order);
      foreach ($order_wrapper-&gt;commerce_line_items as $delta =&gt; $line_item_wrapper) {
                if ($line_item_wrapper-&gt;type-&gt;value() == 'product') {
                    $product_wrapper = $line_item_wrapper-&gt;commerce_product;
                    $cart_product_ids[] = $product_wrapper-&gt;product_id-&gt;value();
                }
      }
    }
        $unique_cart_product_ids = array_unique($cart_product_ids);
  }

  return $cart_product_ids;
}




For adding a class to the views row according to the quantity in the cart you'd implement hook_views_pre_render() and implement your logic there

/**
 * Implements hook_views_pre_render().
 */
function CUSTOMMODULE_views_pre_render(&amp;$view) {
  if ($view-&gt;name == 'your_view_name') {
        // get product_ids in cart
        $cart_product_ids = CUSTOMMODULE_get_products_in_cart();
        if (in_array($product-&gt;product_id, $cart_product_ids)) {
            // check how many times product_id is in the present in the array
            // do other stuff - apply class, etc.
        }
  }
}




Also, you'd probably want to change the "Add to Cart" button text to something custom if the product is already in the cart

function CUSTOMMODULE_form_commerce_cart_add_to_cart_form_alter(&amp;$form, &amp;$form_state) {
  $cart_product_ids = CUSTOMMODULE_get_products_in_cart();
    if (in_array($product-&gt;product_id, $unique_cart_product_ids)) {
        // Product is already in cart
        // Change "Add to Cart" button text
        $form['submit']['#value'] = t('Add one more'); // your custom text and maybe a quantity of that product that is already in cart...
    }
}




I think using hook_views_pre_render() is the right way to go about this, but if there is more efficient or easier way I'd like for others to pitch in with ideas.

Hope this helps.