diff --git a/app/code/Magento/Checkout/view/frontend/web/template/billing-address.html b/app/code/Magento/Checkout/view/frontend/web/template/billing-address.html index 3bf50ab1569e50c03ab7777934d8836604f57ace..895f94e4cbd9404a667524f3e5cf29ba142371cd 100644 --- a/app/code/Magento/Checkout/view/frontend/web/template/billing-address.html +++ b/app/code/Magento/Checkout/view/frontend/web/template/billing-address.html @@ -5,8 +5,8 @@ */ --> <div class="billing-address-same-as-shipping-block field choice" data-bind="visible: canUseShippingAddress()"> - <input type="checkbox" name="billing-address-same-as-shipping" id="billing-address-same-as-shipping" data-bind="checked: isAddressSameAsShipping, click: useShippingAddress"/> - <label for="billing-address-same-as-shipping" data-bind="text: $t('My billing and shipping address are the same')"></label> + <input type="checkbox" name="billing-address-same-as-shipping" data-bind="checked: isAddressSameAsShipping, click: useShippingAddress, attr: {id: 'billing-address-same-as-shipping-' + $parent.getCode()}"/> + <label data-bind="text: $t('My billing and shipping address are the same'), attr: {for: 'billing-address-same-as-shipping-' + $parent.getCode()}"></label> </div> <!-- ko template: 'Magento_Checkout/billing-address/details' --><!-- /ko -->