Drupal 7 Commerce Shopping Cart: disabling Quantity and Remove line item fields for product type

The Commerce Shopping Cart is produced with Views. This makes it easy to modify, but difficult to conditionally manipulate the line items with Rules. That's where hook_form_alter comes to the rescue and with the help of entity_metadata_wrapper.