I've been pulling my hair out with this... I've looked at probably 20 different tutorials and StackOverflow posts and I can NOT see what is wrong with my code.
I'm trying to override CartController.php
Here is my config file:
<config>
<modules>
<OneGiant_CartRedirect>
<version>1.0.0</version>
</OneGiant_CartRedirect>
</modules>
<frontend>
<routers>
<checkout>
<args>
<modules>
<OneGiant_CartRedirect before="Mage_Checkout">OneGiant_Checkout</OneGiant_CartRedirect>
</modules>
</args>
</checkout>
</routers>
</frontend>
</config>
Here is my CartController.php
<?php
require_once 'Mage/Checkout/controllers/CartController.php';
class OneGiant_Checkout_CartController extends Mage_Checkout_CartController
{
protected function _goBack()
{
throw new Mage_Exception('Its working!!!!');
return $this;
}
}
Here is my OneGiant_CartRedirect.xml
<?xml version="1.0"?>
<config>
<modules>
<OneGiant_CartRedirect>
<active>true</active>
<codePool>local</codePool>
<version>1.0.0</version>
</OneGiant_CartRedirect>
</modules>
</config>
Here are the file locations:
app/code/local/OneGiant/CartRedirect/etc/config.xml
app/code/local/OneGiant/CartRedirect/controllers/CartController.php
app/etc/modules/OneGiant_CartRedirect.xml
Please any help would be great. None of the log files are showing any related errors or warnings.