The AJAX cart replacement on coupon add (see #1329600: Provide ajax support to reload form after coupon has been added) works great if you're using the cart summary view provided out of the box by Drupal Commerce, but the target for the ajax replacement is not found when you choose a different view under Checkout Settings -> Shopping cart contents.

The attached patch targets the view in that part of the checkout pane without making an assumption about which specific view it may be.

Comments

remydenton’s picture

I also ran into this bug.

I think there could be edge cases where '.view' isn't a specific enough selector (e.g. if you've got a views attachment, view within a view, etc.). The attached patch is a bit more targeted.

pcambra’s picture

Status: Needs review » Fixed

Makes sense, thanks both for the fix, committed to the -dev version.

Status: Fixed » Closed (fixed)

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