steffen-wirth
11/2/2015 - 9:55 PM

rewrite blocks, models, controller http://excellencemagentoblog.com/blog/2011/09/22/magento-part10-series-overriding

<blocks>
            <catalog>
                <rewrite>
                    <product>Namespace_Test_Block_Catalog_Product</product>
                </rewrite>
            </catalog>
</block>

<models>
            <catalog>
                <rewrite>
                    <product>Excellence_Test_Model_Product</product>
                </rewrite>
            </catalog>
</models>
<!-- CONTROLLER REWRITE -->
<global>
    <rewrite>
        <test_cart> <!--This can be any unique id -->
            <from><![CDATA[#^/checkout/cart/#]]></from>  <!-- the URL which u want to override-->
            <to>/test/checkout_cart/</to>  <!-- destination url -->
        </test_cart>
    </rewrite>
</global>
<?php
require_once 'Mage/Checkout/controllers/CartController.php';
class Excellence_Test_Checkout_CartController extends Mage_Checkout_CartController{
}