I want to filter the shipping address visible on the Magento2 checkout page based on a custom address attribute. I want to show only those address which has the required custom attribute value in them.

From which Magento2 class/file this comes on the checkout page? where I can add my logic. enter image description here

1 Answer 1


Possible look into the class





The key customerData contains addresses where all the addresses could be loaded into checkout here. Plugin into \Magento\Checkout\Model\DefaultConfigProvider::getConfig() And change the result of key addresses for your purpose

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.