0

Is there a way to create a new custom address attribute and set the default option to all existing addresses? Right now it only shows the default value when creating a new address and all existing addresses have this new attribute as null.

Thanks!

asked Aug 10, 2020 at 18:29

1 Answer 1

1

Often times the answer is pretty simple: update the values in the database with a simple query.

If you want to do the "magento way" create a console command and load the address collection and update the values via a simple script.

answered Aug 10, 2020 at 20:24

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.