Try the Demo

Magento

eCommerce Software for Online Growth

Magento Forum

Our new hosted solution for small & emerging businesses
   
modify address format (app/code/core/Mage/Customer/etc/config.xml)
 
brixters
Jr. Member
 
Total Posts:  13
Joined:  2009-04-20
 

I’m trying to modify the address format. When I change app/code/core/Mage/Customer/etc/config.xml this works like expected. Since I don’t want to modify core files, I copied this file to app/code/local/Mage/Customer/etc/config.xml and modified it, but somehow this doesn’t reflect any changes?

I’m quite new to magento, I’m I missing something? Should this work or do I need to do something else. Literally the only thing I did was copy the config.xml file and modify it.

 
Magento Community Magento Community
Magento Community
Magento Community
 
pixelslave06
Jr. Member
 
Total Posts:  2
Joined:  2010-07-20
 

*push*

are there really no answers??

 
Magento Community Magento Community
Magento Community
Magento Community
 
G&C
Jr. Member
 
Total Posts:  27
Joined:  2009-09-15
 

We just did this, you need to overload it with a module.

You need to create this directory structure:

app/code/local/MyCompany/Customer/etc

(where \"MyCompany\" is what ever you like)

copy the config.xml into app/code/local/MyCompany/Customer/etc and in config.xml change the Mage_Customer block to MyCompany_Customer. e.g.

<config>
    <
modules>
        <
MyCompany_Customer>
            <
version>0.1</version>
        </
MyCompany_Customer>
    </
modules>
    <global>
        <
customer>
blah blah...

Then we created this file to activate the new module:

app/etc/modules/MyCompany_All.xml

with this in it:

<?xml version=\"1.0\"?>
<config>
    <
modules>
        <
MyCompany_Customer>
            <
active>true</active>
            <
codePool>local</codePool>
            <
version>0.1.0</version>
        </
MyCompany_Customer>
    </
modules>
</
config>

note, you only need to include the blocks you change in the new config.xml file.

Cheers,

G&C;

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
© Copyright 2012 Magento Inc.
Privacy Policy|Terms of Service
Magento Community Count
713669 users|860 users currently online|495363 forum posts