Cart

Drupal Commerce: Add "Update cart" button on top of cart view

Today I'd like to provide a short snippet (hook) to add an additional "Update cart" button on top of the cart view in commerce.module.

  1. /**
  2.  * Implements hook_form_FORM-ID_alter.
  3.  * @param type $form
  4.  * @param type $form_state
  5.  */
  6. function MY-MODULE_form_views_form_commerce_cart_form_default_alter(&$form, &$form_state) {