Shipping method radios have duplicate IDs on cart page #10795
Labels
Fixed in 2.2.x
The issue has been fixed in 2.2 release line
Issue: Clear Description
Gate 2 Passed. Manual verification of the issue description passed
Issue: Format is valid
Gate 1 Passed. Automatic verification of issue format passed
Issue: Ready for Work
Gate 4. Acknowledged. Issue is added to backlog and ready for development
up for grabs
Preconditions
Steps to reproduce
E.g: UPS with GND and 1DA and UPS_1 with GND and 1DA
Expected result
Actual result
Issue would appear to lie in: vendor/magento/module-checkout/view/frontend/web/template/cart/shipping-rates.html
The id of the radio is being set to 's_method_' + method_code whereas which would for the above scenario would result in two radio elements both with the ID of "s_method_GND"
However, in the checkout/shipping.html file there's a check to see if there's other rates, and if there is the ID is set to 's_method_' + method.carrier_code + '_' + method.method_code which works correctly.
The fix would be to implement the same logic on the cart estimator
The text was updated successfully, but these errors were encountered: