Magento

eCommerce Software for Online Growth

Magento Forum

From setting up your store to managing your products, pages and promotions to generating detailed reports, the Magento User Guide empowers the user to utilize the platform for all of its vast capacity.
Available in eBook and Print formats – Download Now!!!
   
Shipping Address Format
 
oldsmoky
Jr. Member
 
Total Posts:  23
Joined:  2008-09-27
 

Can someone please tell me how to change the shipping address format.

The way it appears now is:

Customer Name
123 Main Street
City, 92077, State
Country
Telephone

I would like it to read

Customer Name
123 Main Street
City, State 92077
Country
Telephone

 
Magento Community Magento Community
Magento Community
Magento Community
 
[m] zentrale
Guru
 
Avatar
Total Posts:  699
Joined:  2007-12-06
Stuttgart, Germany
 

Hi,

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.

Cheers

Stefan

 Signature 

Account-User: S. Bothner & A. Jaus

mzentrale | eCommerce - eBusiness
Agentur für eCommerce Beratung, Entwicklung & Marketing.
Magento™ Professionel Partner
----

 
Magento Community Magento Community
Magento Community
Magento Community
 
oldsmoky
Jr. Member
 
Total Posts:  23
Joined:  2008-09-27
 

Thank you very much Stefan!  grin

 
Magento Community Magento Community
Magento Community
Magento Community
 
[m] zentrale
Guru
 
Avatar
Total Posts:  699
Joined:  2007-12-06
Stuttgart, Germany
 

Hi,

your welcome smile

Cheers

 Signature 

Account-User: S. Bothner & A. Jaus

mzentrale | eCommerce - eBusiness
Agentur für eCommerce Beratung, Entwicklung & Marketing.
Magento™ Professionel Partner
----

 
Magento Community Magento Community
Magento Community
Magento Community
 
oldsmoky
Jr. Member
 
Total Posts:  23
Joined:  2008-09-27
 

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?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Scott
Guru
 
Avatar
Total Posts:  326
Joined:  2007-08-31
Northwest Ohio
 

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:

<code>{{depend city}}{{var city}}, {{/depend}} {{var region}} {{depend postcode}} {{var postcode}} {{/depend}}</code>

Make sure you update the three multi-line sections.

cool smile

 Signature 

Need a Magento designer? I specialize in helping developers and shop owners create Magento themes designed with aesthetic bliss, crisp refreshing style, and usability-focused design. Check out Tealo, the first public Magento theme!

Your Magento Partner for Stunning Creative Work!

 
Magento Community Magento Community
Magento Community
Magento Community
 
Bojan Hrnkas
Member
 
Total Posts:  42
Joined:  2008-04-16
 

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?

Thanks!

Bojan Hrnkas

 Signature 

Bojan Hrnkas
Software Developer
Future Factory Bussines Software

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
© Copyright 2010 Varien. Magento, eCommerce software, is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
177714 users|1148 users currently online|277292 forum posts