Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 havechecked="checked"
- Highlight second input
- Change radio button value to secondary shipping method.
- Second
<input>
does not havechecked="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
Comment | File | Size | Author |
---|---|---|---|
#2 | 3227281-2.patch | 913 bytes | jsacksick |
|
Comments
Comment #2
jsacksick CreditAttribution: jsacksick at Centarro commentedThe attached patch seems to fix the issue.
Comment #3
_gramur CreditAttribution: _gramur commentedTested and patch works for me.
Cheers!
Comment #5
jsacksick CreditAttribution: jsacksick at Centarro commentedWent ahead and committed the fix.