How can I show unchecked Save in address book at checkout when adding new shipping address?

Please suggest me.

enter image description here


I don't know which onestepcheckout you are using. But you can check in core checkout how it works refer below files


    <!-- ko if: (isCustomerLoggedIn) -->
    <div class="field choice" data-bind="visible: !isFormInline">
        <input type="checkbox" class="checkbox" id="shipping-save-in-address-book" data-bind="checked: saveInAddressBook" />
        <label class="label" for="shipping-save-in-address-book">
            <span data-bind="i18n: 'Save in address book'"></span>
    <!-- /ko -->

In above code the checkbox value is bind data-bind="checked: saveInAddressBook" /> This value is set in shipping.js file


    isNewAddressAdded: ko.observable(false),
    saveInAddressBook: 1, //Change this value to 0

Redeploy your static content

clear cache and check

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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