My issues, After launching the website I have made some of the street lines mandatory, which was not initially. So some of the customers already have address stored without the new mandatory street line. So is there a Magento way to show the selected stored address in the Onepage adress form and customer can edit it and save it(Save in same ID) and continue with Checkout.
Magento – way to edit the pre stored address in the Onepage checkout page
addressbilling-addresscheckoutonepage-checkout
Related Topic
- Why Shipping and Billing Address Reset After Page Refresh on Checkout Page?
- Magento 2 – Add Label on All Lines of Street Fields in Checkout and Make Them Required
- Magento 2 – How to Format Shipping and Billing Address
- Magento – How to divide street address into 3 lines with label for each line and update them in checkout form for billing address
Best Answer
I can suggest the following:
in billing.phtml Magento do a check in order to show you the address fields if you have no addresses already stored, or to show you the select filled with your addresses.
As you can see Magento always prepare and populate the address's field but the form will be "hidden".
You can write a function that look into the saved address for the missing new mandatory fields and add this function to the if
I hope this will help you.