I need to add a new class to the Catalog module.
I know how to rewrite an existing class in config.xml using something like:
But what if I want to add a new class? Let’s say MyCompany_Catalog_Model_Category_myNewFolder_myNewClass.
I tried the following to redeclare the module as being in my local pool:
But then it expects to find all the files in my local pool, meaning I should overwrite every existing file of that module -> lot of work.
Trying something more subtle like:
doesn’t work neither.
<class> MyCompany_Catalog_Model_Category_myNewFolder_myNewClass </class>
What is the general approach to just add a file/class to an existing module in Magento?