According to commerce_line_item.js, we should be able to update (reload) the cart by hitting "enter".

This doesn't work.

CommentFileSizeAuthor
#1 update_quantity_enter.2019727.patch539 bytesHaza
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Haza’s picture

Status: Active » Needs review
FileSize
539 bytes

The button name has been changed in #1172580: Make Commerce use the new Views form functionality, instead of relying on its own. (It was "update", and now it is "submit").

-    $form['actions']['update']['#value'] = t('Update cart');
-    $form['actions']['update']['#submit'] = array_merge($form['#submit'], array('commerce_cart_line_item_views_form_submit'));
+    $form['actions']['submit']['#value'] = t('Update cart');
+    $form['actions']['submit']['#submit'] = array_merge($form['#submit'], array('commerce_cart_line_item_views_form_submit'));

We need to change the JS to match that.

Patch attached.

rszrama’s picture

Status: Needs review » Fixed

Nice find!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.