Home » Magento9 April 2012

Magento: Overriding / Rewriting Mysql4 and Resource Eav Collection Class

Here is a tip to override/rewrite Mysql4 and Resource Eav collection class. I will only be including the config xml code. You can read more about Model Overriding over here: Magento: Model Controller Block Helper Override

By Mysql4 Collection Class, I mean like the following class:
Mage_Sales_Model_Mysql4_Order_Collection

Overriding Mysql4 Collection Class

By Resource Eav Collection Class, I mean like the following class:
Mage_Catalog_Model_Resource_Eav_Mysql4_Product_Collection

Overriding Resource Eav Collection Class

Checking Class Name

After overriding, you can check the class name with the following code. This is useful to check if the overriding code is correct and working or not.

Thanks.

Magento

Get New Post by Email

Find me on

FacebookTwitterGoogle+LinkedInRSS Feed
  • Edifying post Mukesh it do help to override/rewrite Mysql4 and Resource Eav collection class..Thanks for the post..