我如何覆盖"addAction()";在app \ code \ core \ Mage \ Checkout \ controllers下的功能 [英] How do i override the "addAction()" funciton under app\code\core\Mage\Checkout\controllers

查看:45
本文介绍了我如何覆盖"addAction()";在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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆