title: How to show product attribute name in cart page
body: <p>One of my favorite members <a href="https://stackoverflow.com/users/383847/helgatheviking">helgatheviking</a>, gave me a good solution <a href="https://stackoverflow.com/questions/30926084/how-to-remove-the-quantity-field-from-cart-page-for-specific-product-attribute-w">of my previous question</a> to remove the quantity field from cart page for specific product attribute . Below is the function given by her.</p>
  
  <pre><code>add_filter( 'woocommerce_cart_item_quantity', 'remove_cart_item_quantity', 10, 2 );
  function remove_cart_item_quantity( $product_quantity, $cart_item_key ){
      $cart_item = WC()-&gt;cart-&gt;cart_contents[ $cart_item_key ];
      if( $cart_item['data']-&gt;is_type( 'variation' ) ){
          $attributes = $cart_item['data']-&gt;get_attributes();
          // var_dump( $attributes );
          if( array_key_exists( 'color', $attributes ) ){
              $product_quantity = '';
          }
      }
      return $product_quantity;
  }
  </code></pre>
  
  <p>Now the <code>$product_quantity;</code> return a blank string. </p>
  
  <p>Is it possible to show the name instead of Blank. <code>$product_quantity = '';</code>  What should I replace ?  If Selected product has color Green The <code>$product_quantity;</code> should return  green.
  EXAMPLE:
  <code>$product_quantity = '$color';</code> How could I get the color string from product attribute which in the cart.</p>