|
Hi - I am now at the stage where I am looking to move the client Invoice/Credit Note/… up to the client current design and look. I have a question about overloading the Abstract..
I have already overloaded the app/code/core/Mage/Sales/Model/Order/Pdf/invoice.php file using the normal overload and below is the config.xml that I am using to overload the invoice.php file (Mage_Sales_Model_Order_Pdf_Invoice)
<global> <models> <sales> <rewrite> <order_pdf_invoice>Charlie_Sales_Model_Order_Pdf_Invoice</order_pdf_invoice> </rewrite> </sales> </models> </global>
This works great… now most of the code I need to change is in the Abstract.php..!
Does anyone know how to do this? I have tried the obvious (below) but that did not work - nor did it seem right.
<order_pdf_abstract>Charlie_Sales_Model_Order_Pdf_Abstract</order_pdf_abstract>
The problem seems to be that Abstract is not called via a Mage::getModel(....) call but is an inherited class. - Do I have to overload the whole class structure and if so has anyone any idea how to do this?
Thanks for your time
John
|