我如何覆盖"addAction()";在app \ code \ core \ Mage \ Checkout \ controllers下的功能 [英] How do i override the "addAction()" funciton under app\code\core\Mage\Checkout\controllers
问题描述
将产品添加到购物车时,我正在尝试向会话变量中添加一些数据...
I am trying to add some data to a session variable when a product is added to the shopping cart...
我尝试将"app \ code \ core \ Mage \ Checkout \ controllers"下的"CartController.php"复制到 "local \ Mage \ Checkout \ controllers",但实际上并没有覆盖控制器.
I tried copying the "CartController.php" under "app\code\core\Mage\Checkout\controllers" to "local\Mage\Checkout\controllers" but its not actually overriding the controller..
有人可以给我一些提示吗?.
Could anyone give me some hint on this..?
非常感谢.
推荐答案
I found this , this enables us to override the CartController.php addAction() funciton... This is exaclty i needed.
希望这会对有需要的人有所帮助.
Hope this would help someone in need.
巴兰
这篇关于我如何覆盖"addAction()";在app \ code \ core \ Mage \ Checkout \ controllers下的功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!