Closed
Description
Preconditions
- Magento CE v2.1 installed
Steps to reproduce
- Can't reproduce using core Magento shipping carriers. Need two shipping carriers with different carrier codes but same method codes.
E.g: UPS with GND and 1DA and UPS_1 with GND and 1DA
Expected result
- Should be able to select Ground from either carrier
Actual result
- Clicking on the first Ground
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