Override cart controller twice or only override /checkout/cart/delete
-
30-10-2019 - |
Question
In a shop using Idev_OneStepCheckout
I need to override the deleteAction. OSC doesn't do this, but it does override Mage_Checkout_CartController
, only for the _goBack()
method. The shop also has a storeview that uses the standard OnePage checkout from Magento.
So, unfortunately, I can't do:
<frontend>
<routers>
<checkout>
<args>
<modules>
<MyNameSpace_MyModule before="Idev_OneStepCheckout">MyNameSpace_MyModule_OneStepCheckout</MyNameSpace_MyModule>
<MyNameSpace_MyModule before="Mage_Checkout">MyNameSpace_MyModule</MyNameSpace_MyModule>
</modules>
</args>
</checkout>
</routers>
</frontend>
Well, I can, but my module isn't called in the OSC case. Disabling either makes it work for the checkout in question, so I know my code is correct.
Do I have to resort to a rewrite of /checkout/cart/delete
for the onepage case or is there a more elegant solution?
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange