3

I want to disabled the Mage_Checkout completely. but when i disabled the adavnced > modules it shows blank page not 404 page. when i disabled the from etc/modules it show errors of dependent module. any other solution

  • So.....you want magento ecommerce without the ecommerce part? – ProxiBlue Aug 2 '16 at 6:44
  • @ProxiBlue yes it's requirement maybe enable it later but now want this – Qaisar Satti Aug 2 '16 at 6:46
  • 1
    this may be of use/help, if not use-able fully, but for the 'how' github.com/colinmollenhour/magento-lite – ProxiBlue Aug 2 '16 at 6:58
1

You need to disable Mage_Checkout module through activation file (ie app\etc\modules) and remove all dependencies from other modules manually. You can achieve this by removing dependencies through activation files of other modules. Other than that, there is no other solutions in my knowledge.

Still you can expect some errors from other modules due to the lack of Mage_Checkout module since Magento core modules are not independent modules. There should be some unavoidable dependency in other modules. In those cases, you need to remove or replace such dependencies from other modules too. You can expect such dependencies in layout xml files or in some block or in some models.

  • as i already mention there is long list of module's. so can't do that. – Qaisar Satti Aug 2 '16 at 6:56
  • @QaisarSatti Yes. But you can avoid direct dependencies through activation files of those modules which are dependent on Mage_Checkout modules that will remove most of the errors. But removing Mage_Checkout module completely from the system is very hard. I remember which is mentioned by Marius once. He faced this issue while he convert Magento to a blog tool (CMS). – Rajeev K Tomy Aug 2 '16 at 7:00
  • thanks but I ending up doing set the 404 page for these.. that will fulfill the requirement. – Qaisar Satti Aug 2 '16 at 7:06
0

rewrite the controller in my case Mage_Checkout

<routers>
        <checkout>
        <args>
            <modules>
            <Spacename_Modulename before="Mage_Checkout">Spacename_Modulename</Spacename_Modulename> 
            </modules>
        </args>
        </checkout>
    </routers>

in controller add preDispatch and just add $this->norouteAction();

public function preDispatch()
    {
        parent::preDispatch();
         $this->norouteAction();

   }

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.