go to /app/Code/Core/Mage/Customer/etc/config.xml there you find the definiton of serveral address formats (within node <customer>).
Create a own module with own config.xml and overwrite the configuration.
I got around to opening that config.xml file and almost had a heart attack. That file is scarier than all the others I’ve been trying to hack. I just want to have the incoming order confirmation email print the address format City, State Zip Code instead of Cizy, Zip Code, State . I’m scared to touch this file without knowing which specific entry to modify. Can you please help?
I’m with you. Don’t know why Varien chose the odd address formatting for a system that was initially only useful for the states, but even Yoav said the formatting would see more options than this, due some time around v1.0. Yet I haven’t seen anything in the admin control panel, so I’m not sure if they just dropped this altogether, or if this was their idea of “more options” which I highly doubt. In any case, it’s understandably confusing.
You can move tags wrapped in {{var varname}} around, but keep in mind that tags surrounded by {{depend varname}} {{var varname}} {{/depend}} go together, so don’t move content inside any depend tag-pairs, unless you want that variable to also be dependent on the depend variable. Hopefully that’s not so confusing.
Keeping it simple, the local line for the United States standard address format would be:
I have a question to this.
How do I overwrite only this part of config.xml? I don’t want to overwrite entire config.xml in order not to influence any further magento upgrades.
Any idea?