Skip to content

Magento: How to Find Rewrite Class?

use this simple script to locate rewrite class

 

print_r(Mage::getConfig()->getNode()->xpath(‘//global//rewrite’));

 

example result :

Array
(
    [0] => Mage_Core_Model_Config_Element Object
        (
            [layout] => Aitoc_Aitsys_Model_Core_Layout
            [locale] => ET_CurrencyManager_Model_Locale
            [store] => ET_CurrencyManager_Model_Store
        )

    [1] => Mage_Core_Model_Config_Element Object
        (
            [currency] => ET_CurrencyManager_Model_Currency
        )

    [2] => Mage_Core_Model_Config_Element Object
        (
            [process] => Aitoc_Aitsys_Model_Compiler_Process
        )

    [3] => Mage_Core_Model_Config_Element Object
        (
            [info] => Mud_Avsdisplay_Block_Info
        )

    [4] => Mage_Core_Model_Config_Element Object
        (
            [sales_order_grid] => EM_DeleteOrder_Block_Adminhtml_Sales_Order_Grid
            [catalog_product_helper_form_price] => ET_CurrencyManager_Block_Adminhtml_Formprice
            [catalog_product_grid] => ZetaPrints_Options_Block_Adminhtml_Grid
        )

    [5] => Mage_Core_Model_Config_Element Object
        (
            [order_confirm] => Ks_Sales_Block_Order_Confirm
        )

    [6] => Mage_Core_Model_Config_Element Object
        (
            [onepage] => AdjustWare_Cartalert_Block_Rewrite_FrontCheckoutOnepage
        )

    [7] => Mage_Core_Model_Config_Element Object
        (
            [Belvg_FacebookAll_Wishlist_Index] => Mage_Core_Model_Config_Element Object
                (
                    [from] => #^/wishlist/index/#

                    [to] => /facebookall/wishlist_index/
                )

            [twitter_index_ipad] => Mage_Core_Model_Config_Element Object
                (
                    [from] => #^/ipad#
                    [to] => /twitter/index/ipad/
                )

            [twitter_admin] => Mage_Core_Model_Config_Element Object
                (
                    [from] => #^/twitter_admin/#
                    [to] => /twitter/admin/
                )

            [em_emadmin_adminhtml_sales_order] => Mage_Core_Model_Config_Element Object
                (
                    [from] => #/admin/sales_order/#
                    [to] => /emadmin/adminhtml_sales_order/
                )

            [gippayment_onepage] => Mage_Core_Model_Config_Element Object
                (
                    [from] => #^/checkout/onepage/#
                    [to] => /gippayment/onepage/
                )

            [gippayment2_onepage] => Mage_Core_Model_Config_Element Object
                (
                    [from] => #^/checkout/onepage/#
                    [to] => /gippayment2/onepage/
                )

            [zpoptoins_masscopy] => Mage_Core_Model_Config_Element Object
                (
                    [from] => #^/admin/zp-options/masscopy#
                    [to] => /zpoptions/zpoptions/masscopy
                )

            [zpoptoins_massdelete] => Mage_Core_Model_Config_Element Object
                (
                    [from] => #^/admin/zp-options/massdelete#
                    [to] => /zpoptions/zpoptions/massdelete
                )

        )

)

 

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *