I'm not sure if this is strickly particular to me but my issue involves the checked attribute not updating when there are multiple shipping methods. This happens on a customer's order form (during checkout).

This particular issue happens if I have Auto recalculate shipping costs when the shipping address changes selected.

Steps to Reprodue

  • Enable: Auto recalculate shipping costs when the shipping address changes
  • Have: Multiple shipping methods available to be selected.
  • Proceed through checkout until shipping method.
  • "view source" of radio button <input> the selected radio button will have checked="checked"
  • Highlight second input
  • Change radio button value to secondary shipping method.
  • Second <input> does not have checked="checked". The first input is still selected as "Checked" regardless of the user selecting a new option.

If I refresh the page, the new input will have the checked attribute and value.

If I disable: Auto recalculate shipping costs when the shipping address changes and manually hit the refresh cart button this problem goes away as well

CommentFileSizeAuthor
#2 3227281-2.patch913 bytesjsacksick
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

_gramur created an issue. See original summary.

jsacksick’s picture

Status: Active » Needs review
FileSize
913 bytes

The attached patch seems to fix the issue.

_gramur’s picture

Tested and patch works for me.

Cheers!

  • jsacksick committed b833cb9 on 8.x-2.x
    Issue #3227281 by jsacksick, _gramur: Selecting a shipping rate should...
jsacksick’s picture

Title: Radio Button for Shipping Method Does Not Update Checked Value » Selecting a shipping rate should refresh the shipments form
Status: Needs review » Fixed

Went ahead and committed the fix.

Status: Fixed » Closed (fixed)

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