Blogs

How to disable Quantity and Remove line item fields for product type with Drupal 7 Commerce

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.

Pages