I want to change billing address drop down in checkout page similar to shipping address view list template. I have tried the following code in


 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
<div class="field field-select-billing">
    <label class="label"><span data-bind="i18n: 'Billing Address'"></span></label>
    <div class="control" data-bind="forach: addressOptions">
        <input type="radio" data-bind="attr:{value: 'selectedAddress',id:customerAddressId}"/>
        <label class="label" data-bind="attr:{for:customerAddressId}">
            <span data-bind="text:addressOptionsText"></span>

I am getting console error :

Uncaught ReferenceError: Unable to process binding "attr: function(){return {value:'selectedAddress',id:customerAddressId} }"
Message: customerAddressId is not defined

My goal is to achieve the same template as in shipping address in checkout .Please help.Thanks in Advance

1 Answer 1


Use selectedAddress().customerAddressId to get the id of selected address

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.