How do I properly overwrite Magento core functionality? I want to create a module that does it.
I need to edit this file: app/code/core/Mage/Adminhtml/Model/Sales/Order/Create.php
I know there is a option to copy this file to app/code/local/Mage/Adminhtml/Model/Sales/Order/Create.php and add my functionality to it which will let Magento read this file from local folder instead of core folder.
It's a easy way of doing but by creating a custom module it's easier to manage all the changes I have done.
So here is what I have done so far:
I have created a /app/etc/modules/MyCompany_MyModule.xml config file with following content:
<?xml version="1.0"?>
<config>
<modules>
<Vendor_CustomPriceRevert>
<active>true</active>
<codePool>local</codePool>
</Vendore_CustomPriceRevert>
</modules>
</config>
This is my second file in app/code/local/MyCompany/MyModule/etc/config.xml and it's content:
<?xml version="1.0"?>
<config>
<modules>
<MyCompany_MyModule>
<version>0.1.0</version>
</MyCompany_MyModule>
</modules>
</config>
I know these two files are essential for any module to work.
Now, what file do I need to create now if I want to overwrite this file? Could someone explain this to me?