i am trying to customize some code, and i were able to get my own files loaded, but just when i try to rewrite the methods for a block.
But i am not able to get my cusomized files under local/MyCompany/Catalog/Model loaded.
I tried alot, but i can figure it out.
Please help me.
this is the part in my local.xml
... <modules> <BC_Catalog> <active>true</active> <codePool>local</codePool> </BC_Catalog> </modules> <blocks> <catalog> <rewrite> <!-- this works --> <breadcrumbs>BC_Catalog_Block_Breadcrumbs</breadcrumbs> </rewrite> </catalog> </blocks> <models> <catalog> <rewrite> <!-- i am not sure what to rewrite and if this works in general --> <???>BC_Catalog_Model_Product</???> </rewrite> </catalog> </models>...
id did it this way, Moshe gave me the needed hints
<models> <!-- model group alias to be used in Mage::getModel() --> <heidelpaydebitadvice> <!-- base class name for the model group --> <class>Mage_Heidelpaydebitadvice_Model</class> </heidelpaydebitadvice> <sales> <rewrite> <convert_order>Mage_Heidelpaydebitadvice_Model_Convert_Order</convert_order> <convert_quote>Mage_Heidelpaydebitadvice_Model_Convert_Quote</convert_quote> </rewrite> </sales> </models>
I overwrite model sales/model/convert/order and sales/model/convert/quote with my model in folder heidelpaydebitadvice/model/convert/order and .../model/convert/quote
I think for you it would be
<models> <catalog> <rewrite> <!-- i am not sure what to rewrite and if this works in general --> <product>BC_Catalog_Model_Product</product> </rewrite> </catalog> </models>
Hope that helps, my english is too bad to explain more abstract, sorry for that.