Description
Preconditions
- Any setup, that can run a Magento 2 install
Steps to reproduce
- Add product to cart
- Go to checkout
- Complete shipping step
- View address formating in summary / Payment method (if use same address is checked)
Expected result
- Address formating should be used from administration.
Actual result
- The checkout uses knockout templating to do this
So Magento have for a long time had this feature where you can select address formating via System > Configuration. This is great, it provides one place where the administrator can go and decide how addresses should behave and it allows merchans to internationalize their store so it fits the address formating of their choice. And have it be reflected across all places on the store where addresses occur.
However since checkout now is using Knockout for most of its rendering this doesn't apply here. This is confusing for merchants, and also for developers. Especially because formating of the addresses are rendered indenpendely.
So the way I see it currently workflow if you wan't to change address formating is:
- Go to admin and edit the formating for the stores you want to, if you have two different formats you need to edit the default and then the one specific store.
- Go the the code and edit the formating in two different template files to the formating affecting the most stores.
- Make a new template, set it up so it extends from the previous default stores one. (Which will increase static file deployment time).
- Edit the formating for the two knockout files again so they reflect this stores formating.
I'm not sure how to resolve this in the most elegant way, but can we agree that this is not an optimal flow for changing something that in older versions of Magento was just step 1. ?