I leave it here for the next poor developer, forced to work with this jalopy. Most of the instructions here are from magento docs , which, like its source, are a distorted labyrinth of the wrong direction. Enough complaints ...
This worked for me in version 1.8
Create a namespace and module: / application / code / local / MyNameSpace / MyModule
Create your module configuration: /app/code/local/MyNameSpace/MyModule/etc/config.xml
<?xml version="1.0" ?> <config> <modules> <MyNameSpace_MyModule> <version>0.1.0</version> </MyNameSpace_MyModule> </modules> <frontend> <routers> <checkout> <args> <modules> <MyNameSpace_MyModule before="Mage_Checkout">MyNameSpace_MyModule_Checkout</MyNameSpace_MyModule> </modules> </args> </checkout> </routers> </frontend>
Create your controller: /app/code/local/MyNameSpace/MyModule/controllers/Checkout/CartController.php
<?php require_once Mage::getModuleDir('controllers', 'Mage_Checkout').DS.'CartController.php'; class MyNameSpace_MyModule_Checkout_CartController extends Mage_Checkout_CartController { public function indexAction() {
Include the new module: / app / etc / modules / MyNameSpace _All.xml
<?xml version="1.0" ?> <config> <modules> <MyNameSpace_MyModule> <active>true</active> <codePool>local</codePool> </MyNameSpace_MyModule> </modules> </config>
That is all that is needed. Now go to the celebration, you just polished the shit!;)
source share