Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I thought I'd move to a new answer as I think I've managed to get it working.</p> <p>Here's what I did</p> <p>created the following files;</p> <p>app/code/local/Company/SpecialCheckout/controllers/Checkout/CartController.php</p> <p>app/code/local/Company/SpecialCheckout/etc/config.xml</p> <p>app/etc/modules/Company_SpecialCheckout.xml</p> <p>First the controller, which is exactly as you had;</p> <pre><code> &lt;?PHP require_once 'Mage/Checkout/controllers/CartController.php'; class Company_SpecialCheckout_Checkout_CartController extends Mage_Checkout_CartController { public function indexAction() { die('test'); } } </code></pre> <p>Then the module configuration</p> <pre><code>&lt;?xml version="1.0"?&gt; &lt;config&gt; &lt;modules&gt; &lt;Company_SpecialCheckout&gt; &lt;version&gt;0.1.0&lt;/version&gt; &lt;/Company_SpecialCheckout&gt; &lt;/modules&gt; &lt;global&gt; &lt;rewrite&gt; &lt;Company_SpecialCheckout_Checkout_Cart&gt; &lt;from&gt;&lt;![CDATA[#^/checkout/cart#]]&gt;&lt;/from&gt; &lt;to&gt;/SpecialCheckout/checkout_cart&lt;/to&gt; &lt;/Company_SpecialCheckout_Checkout_Cart&gt; &lt;/rewrite&gt; &lt;/global&gt; &lt;frontend&gt; &lt;routers&gt; &lt;Company_SpecialCheckout&gt; &lt;use&gt;standard&lt;/use&gt; &lt;args&gt; &lt;module&gt;Company_SpecialCheckout&lt;/module&gt; &lt;frontName&gt;SpecialCheckout&lt;/frontName&gt; &lt;/args&gt; &lt;/Company_SpecialCheckout&gt; &lt;/routers&gt; &lt;/frontend&gt; &lt;/config&gt; </code></pre> <p>and then finally the config file in app/etc/modules to make sure the module is picked up.</p> <pre><code>&lt;?xml version="1.0"?&gt; &lt;config&gt; &lt;modules&gt; &lt;Company_SpecialCheckout&gt; &lt;active&gt;true&lt;/active&gt; &lt;codePool&gt;local&lt;/codePool&gt; &lt;/Company_SpecialCheckout&gt; &lt;/modules&gt; &lt;/config&gt; </code></pre> <p>then when you go /checkout/cart you should see 'test'. This is based on details I found <a href="http://www.magentocommerce.com/wiki/how_to_overload_a_controller" rel="nofollow noreferrer">here</a>.</p> <p>Make sure you have the cacheing of config files disabled in the Magento admin.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload